Skip to content
Snippets Groups Projects
Commit 3631a860 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding mirrors

parent ee801a82
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,9 @@ variables: ...@@ -55,8 +55,9 @@ variables:
variables: variables:
MOUNT_POINT: /stack MOUNT_POINT: /stack
BUILDCACHE: "/work/scitas-ge/richart/ci/buildcache" BUILDCACHE: "/work/scitas-ge/richart/ci/buildcache"
MIRROR: "/work/scitas-ge/richart/ci/mirror"
COMMAND_OPTIONS_SBATCH: ${slurm_options} COMMAND_OPTIONS_SBATCH: ${slurm_options}
APPTAINER_EXEC_OPTIONS: ${apptainer_options} --cleanenv --no-home --bind ${BUILDCACHE}:/buildcache:rw --bind ${CI_PROJECT_DIR}:${MOUNT_POINT} --bind /dev/tty APPTAINER_EXEC_OPTIONS: ${apptainer_options} --cleanenv --no-home -H $(mktemp -d -p $CI_PROJECT_DIR/.tmp):$HOME --bind ${BUILDCACHE}:/buildcache:rw --bind ${MIRROR}:${MOUNT_POINT}/spack-mirror:rw --bind ${CI_PROJECT_DIR}:${MOUNT_POINT} --bind /dev/tty
.spack_cache: .spack_cache:
cache: cache:
......
...@@ -64,6 +64,18 @@ modules: ...@@ -64,6 +64,18 @@ modules:
tcl: ${STACK_LOCATION}/spack/share/spack/modules/${environment} tcl: ${STACK_LOCATION}/spack/share/spack/modules/${environment}
EOF EOF
mirrors=$(jq -Mrc '
.spack.mirrors
| to_entries
| map(select(.value.type="relative"))
| map(" \(.key): \(env.STACK_LOCATION)/\(.value.url)")
| .[]
' stacks/pinot-noir/config.json)
cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/mirrors.yaml
mirrors:
${mirrors}
EOF
echo "Setting up extra repos" echo "Setting up extra repos"
......
...@@ -10,6 +10,16 @@ ...@@ -10,6 +10,16 @@
"url": "https://gitlab.epfl.ch/SCITAS/software-stack/scitas-spack-packages.git", "url": "https://gitlab.epfl.ch/SCITAS/software-stack/scitas-spack-packages.git",
"branch": "releases/2024.0.0" "branch": "releases/2024.0.0"
} }
},
"mirrors": {
"local": {
"url": "spack-mirror",
"type": "relative"
},
"restricted": {
"url": "spack-mirror-restriced",
"type": "relative"
}
} }
}, },
"stack": { "stack": {
...@@ -64,9 +74,11 @@ ...@@ -64,9 +74,11 @@
"check", "check",
"cmake", "cmake",
"cuda", "cuda",
"curl",
"diffutils", "diffutils",
"expat", "expat",
"findutils", "findutils",
"flex",
"font-util", "font-util",
"freetype", "freetype",
"gawk", "gawk",
...@@ -76,15 +88,19 @@ ...@@ -76,15 +88,19 @@
"gmake", "gmake",
"gmp", "gmp",
"gnuplot", "gnuplot",
"help2man",
"hcoll", "hcoll",
"hwloc",
"libaec", "libaec",
"libevent", "libevent",
"libfuse", "libfuse",
"libpciaccess", "libpciaccess",
"libsigsegv", "libsigsegv",
"libtool", "libtool",
"libtiff",
"libuuid", "libuuid",
"libxml2", "libxml2",
"lz4",
"m4", "m4",
"macro-utils", "macro-utils",
"meson", "meson",
...@@ -105,8 +121,10 @@ ...@@ -105,8 +121,10 @@
"sqlite", "sqlite",
"tar", "tar",
"texinfo", "texinfo",
"utf8proc",
"xpmem", "xpmem",
"xz", "xz",
"xxd-standalon",
"zlib-ng", "zlib-ng",
"zstd" "zstd"
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment