Skip to content

Commit 68cbe7b

Browse files
committed
Specify repo locations
1 parent b68ff25 commit 68cbe7b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

ci/Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,20 @@ set -euo pipefail
7575
# Configure Spack defaults, repositories, and external toolchain metadata
7676
. /spack/share/spack/setup-env.sh
7777

78-
spack --timestamp repo add https://github.com/FNALssi/fnal_art.git
79-
spack --timestamp repo add https://github.com/Framework-R-D/phlex-spack-recipes.git
78+
SPACK_REPO_ROOT=/opt/spack-repos
79+
rm -rf "$SPACK_REPO_ROOT/fnal_art" "$SPACK_REPO_ROOT/phlex-spack-recipes"
80+
mkdir -p "$SPACK_REPO_ROOT"
81+
git clone --depth=1 https://github.com/FNALssi/fnal_art.git "$SPACK_REPO_ROOT/fnal_art"
82+
git clone --depth=1 https://github.com/Framework-R-D/phlex-spack-recipes.git "$SPACK_REPO_ROOT/phlex-spack-recipes"
83+
chgrp -R spack "$SPACK_REPO_ROOT"
84+
chmod -R g+rwX "$SPACK_REPO_ROOT"
85+
find "$SPACK_REPO_ROOT" -type d -exec chmod g+s {} +
86+
87+
spack --timestamp repo remove phlex >/dev/null 2>&1 || true
88+
spack --timestamp repo remove fnal_art >/dev/null 2>&1 || true
89+
spack --timestamp repo add --scope site /opt/spack-repos/phlex-spack-recipes/spack_repo/phlex
90+
spack --timestamp repo add --scope site /opt/spack-repos/fnal_art/spack_repo/fnal_art
91+
spack --timestamp repo set --scope site --destination /spack/var/spack/repos/builtin builtin
8092

8193
spack --timestamp compiler find
8294
spack --timestamp external find --exclude python

0 commit comments

Comments
 (0)