Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update spack repo commands in Dockerfile
  • Loading branch information
wdconinc authored Nov 6, 2025
commit 9312a51ed2efef10507995e8e6ac6b1831206c9c
4 changes: 2 additions & 2 deletions containers/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ ARG SPACKPACKAGES_CHERRYPICKS_FILES=""
ADD https://api.github.com/repos/${SPACKPACKAGES_ORGREPO}/commits/${SPACKPACKAGES_VERSION} /tmp/spack-packages.json
RUN <<EOF
set -e
spack repo add --scope site --branch ${SPACKPACKAGES_VERSION} https://github.com/${SPACKPACKAGES_ORGREPO}.git ${SPACKPACKAGES_ROOT}
spack repo add --scope site --name builtin https://github.com/${SPACKPACKAGES_ORGREPO}.git ${SPACKPACKAGES_ROOT}
spack repo update --scope site --branch ${SPACKPACKAGES_VERSION} builtin
if [ -n "${SPACKPACKAGES_CHERRYPICKS}" ] ; then
SPACKPACKAGES_CHERRYPICKS=$(git -C ${SPACKPACKAGES_ROOT} rev-list --topo-order ${SPACKPACKAGES_CHERRYPICKS} | grep -m $(echo ${SPACKPACKAGES_CHERRYPICKS} | wc -w) "${SPACKPACKAGES_CHERRYPICKS}" | tac)
eval "declare -A SPACKPACKAGES_CHERRYPICKS_FILES_ARRAY=(${SPACKPACKAGES_CHERRYPICKS_FILES})"
Expand All @@ -209,7 +210,6 @@ if [ -n "${SPACKPACKAGES_CHERRYPICKS}" ] ; then
done
fi
git -C ${SPACKPACKAGES_ROOT} gc --prune=all --aggressive
spack repo add --scope site "${SPACKPACKAGES_ROOT}/repos/spack_repo/builtin"
EOF

## Setup build configuration
Expand Down
Loading