Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scitas-software-stacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCITAS
Software stack
scitas-software-stacks
Commits
b28d3c63
Commit
b28d3c63
authored
7 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Creating new squashfs after step
parent
c4cc2f97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
CI update to use squashfs
Pipeline
#201433
failed
7 months ago
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+4
-2
4 additions, 2 deletions
.gitlab-ci.yml
ci/prepare_squashfs.sh
+1
-20
1 addition, 20 deletions
ci/prepare_squashfs.sh
ci/stack_env.sh
+18
-0
18 additions, 0 deletions
ci/stack_env.sh
ci/update_squashfs.sh
+13
-0
13 additions, 0 deletions
ci/update_squashfs.sh
with
36 additions
and
22 deletions
.gitlab-ci.yml
+
4
−
2
View file @
b28d3c63
...
...
@@ -78,8 +78,10 @@ variables:
--bind ${CI_DATA}/spack-mirror:${MOUNT_POINT}/spack-mirror
--bind ${CI_DATA}/squashfs-cache/:/squashfs-cache \
--bind ${CI_DATA}/overlayfs:/overlayfs \
--fusermount "host:/usr/libexec/apptainer/bin/squashfuse_ll ${CI_DATA}/squashfs-cache/${stack}-${environment}-${SQUASHFS_ID}.sqfs /squashfs"
--fusermount "container:fuse-overlayfs -o squash_to_uid=$(id -n) -o squash_to_gid=$(id -g) -o lowerdir=/squashfs -o upperdir=/overlayfs/upper -o workdir=/overlayfs/wd ${MOUNT_POINT}/${stack}/${environment}/${STACK_VERSION}"
--fusemount "host:/usr/libexec/apptainer/bin/squashfuse_ll ${CI_DATA}/squashfs-cache/${stack}-${environment}-${SQUASHFS_ID}.sqfs /squashfs"
--fusemount "container:fuse-overlayfs -o squash_to_uid=$(id -n) -o squash_to_gid=$(id -g) -o lowerdir=/squashfs -o upperdir=/overlayfs/upper -o workdir=/overlayfs/wd ${MOUNT_POINT}/${stack}/${environment}/${STACK_VERSION}"
after_scripts
:
-
./ci/update_squashfs.sh
.spack_cache
:
cache
:
...
...
This diff is collapsed.
Click to expand it.
ci/prepare_squashfs.sh
+
1
−
20
View file @
b28d3c63
#!/usr/bin/env sh
set
-o
pipefail
set
-o
nounset
source
${
CI_PROJECT_DIR
}
/ci/stack_env.sh
if
[
"x
${
CI_DEFAULT_BRANCH
}
"
!=
"x"
]
then
squash_base
=
${
CI_DEFAULT_BRANCH
}
else
squash_base
=
main
fi
if
[
"x
${
CI_MERGE_REQUEST_IID
}
"
!=
"x"
]
then
squash_id
=
${
CI_MERGE_REQUEST_IID
}
elif
[
"x
${
CI_COMMIT_BRANCH
}
"
!=
"x"
]
then
squash_id
=
${
CI_MERGE_REQUEST_IID
}
else
squash_id
=
"local"
fi
set
-o
nounset
if
[
!
-d
/squashfs-cache
]
then
mkdir
-p
/squashfs-cache
...
...
This diff is collapsed.
Click to expand it.
ci/stack_env.sh
+
18
−
0
View file @
b28d3c63
...
...
@@ -23,3 +23,21 @@ echo "STACK_LOCATION: ${STACK_LOCATION}"
echo
"SPACK_SYSTEM_CONFIG_PATH:
${
SPACK_SYSTEM_CONFIG_PATH
}
"
# echo "SPACK_USER_CACHE_PATH: ${SPACK_USER_CACHE_PATH}"
# echo "SPACK_USER_CONFIG_PATH: ${SPACK_USER_CONFIG_PATH}"
if
[
"x
${
CI_DEFAULT_BRANCH
}
"
!=
"x"
]
then
squash_base
=
${
CI_DEFAULT_BRANCH
}
else
squash_base
=
main
fi
if
[
"x
${
CI_MERGE_REQUEST_IID
}
"
!=
"x"
]
then
squash_id
=
${
CI_MERGE_REQUEST_IID
}
elif
[
"x
${
CI_COMMIT_BRANCH
}
"
!=
"x"
]
then
squash_id
=
${
CI_MERGE_REQUEST_IID
}
else
squash_id
=
"local"
fi
This diff is collapsed.
Click to expand it.
ci/update_squashfs.sh
0 → 100644
+
13
−
0
View file @
b28d3c63
#!/usr/bin/env sh
set
-o
errexit
set
-o
pipefail
set
-o
nounset
source
${
CI_PROJECT_DIR
}
/ci/stack_env.sh
cd
/squashfs-cache
mksquashfs
${
STACK_LOCATION
}
${
stack
}
-
${
environment
}
-
${
squash_id
}
-
$(
date
+
'%Y%m%d_%H%M'
)
.sqfs
ln
-sf
${
stack
}
-
${
environment
}
-
${
squash_id
}
-
$(
date
+
'%Y%m%d_%H%M'
)
.sqfs
${
stack
}
-
${
environment
}
-
${
squash_id
}
.sqfs
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment