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
0093376a
Commit
0093376a
authored
7 months ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
upadte debug script
parent
11912161
Loading
Loading
1 merge request
!2
CI update to use squashfs
Pipeline
#201490
failed
7 months ago
Stage: .pre
Stage: environment
Stage: compilers
Stage: concretize
Stage: install
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/apptainer_by_hand.sh
+14
-27
14 additions, 27 deletions
ci/apptainer_by_hand.sh
with
14 additions
and
27 deletions
ci/apptainer_by_hand.sh
+
14
−
27
View file @
0093376a
#!/usr/bin/env sh
CI_DATA
=
"/scratch/richart/ci"
export
CI_DATA
=
"/scratch/richart/ci"
srun_options
=
"-N1 -n1 -c 64 -p h100"
apptainer_options
=
"--nv"
stack
=
pinot-noir
environment
=
kuma_h100
export
stack
=
pinot-noir
export
environment
=
kuma_h100
SQUASHFS_ID
=
local
CI_JOB_ID
=
1337
export
SQUASHFS_ID
=
local
export
CI_JOB_ID
=
1337
FAKEHOME
=
"/scratch/
$(
id
-un
)
"
export
FAKEHOME
=
"/scratch/
$(
id
-un
)
"
CI_PROJECT_DIR
=
$PWD
GPG_PRIVATE_KEY
=
${
CI_PROJECT_DIR
}
/stacks/buildcache.pem
MOUNT_POINT
=
$(
jq
-Mrc
.stack.mount_point
${
CI_PROJECT_DIR
}
/stacks/
${
stack
}
/config.json
)
export
CI_PROJECT_DIR
=
$PWD
export
GPG_PRIVATE_KEY
=
${
CI_PROJECT_DIR
}
/stacks/buildcache.pem
export
MOUNT_POINT
=
$(
jq
-Mrc
.stack.mount_point
${
CI_PROJECT_DIR
}
/stacks/
${
stack
}
/config.json
)
export
STACK_VERSION
=
$(
jq
-Mrc
.stack.version
${
CI_PROJECT_DIR
}
/stacks/
${
stack
}
/config.json
)
APPTAINER_IMAGE
=
~/rhel9-kuma.sif
for
i
in
overlayfs squashfs-cache buildcache spack-mirror
do
if
[
!
-e
${
CI_DATA
}
/
$i
]
then
mkdir
-p
${
CI_DATA
}
/
$i
fi
done
if
[
!
-f
${
CI_DATA
}
/squashfs-cache/
${
stack
}
-
${
environment
}
-
${
SQUASHFS_ID
}
.sqfs
]
then
empty
=
$(
mktemp
-d
)
mksquashfs
${
empty
}
${
CI_DATA
}
/squashfs-cache/
${
stack
}
-
${
environment
}
-
${
SQUASHFS_ID
}
.sqfs
fi
if
[
!
-f
${
APPTAINER_IMAGE
}
]
then
apptainer pull
-F
${
APPTAINER_IMAGE
}
docker://registry.c4science.ch/scitas-stack/rhel9-kuma
fi
./ci/prepare_squashfs.sh
echo
"host:/usr/libexec/apptainer/bin/squashfuse_ll
${
CI_DATA
}
/squashfs-cache/
${
stack
}
-
${
environment
}
-
${
SQUASHFS_ID
}
.sqfs /overlayfs/lower-
${
SQUASHFS_ID
}
-
${
CI_JOB_ID
}
"
echo
"host:
${
CI_PROJECT_DIR
}
/ci/fuse-overlayfs.sh
${
CI_DATA
}
${
SQUASHFS_ID
}
-
${
CI_JOB_ID
}
${
MOUNT_POINT
}
/
${
stack
}
/
${
environment
}
/
${
STACK_VERSION
}
"
srun
${
srun_options
}
--pty
apptainer run
\
${
apptainer_options
}
\
...
...
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