Skip to content

Commit

Permalink
Make builder workable stand-alone.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Nov 22, 2024
1 parent 8a44484 commit 2f216c7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ RUN spack external find --scope=site opengl
RUN spack config --scope=site add "config:install_tree:padded_length:128" \
&& spack config --scope=site add "config:install_tree:root:/opt/software"

# Set up our repos, ONBUILD will update this
RUN mkdir $REPOS_ROOT && cd $REPOS_ROOT \
&& pwd && echo $REPOS_ROOT && echo $REPOS_BRANCH && ls -al \
&& git clone --depth=1 --single-branch --branch $REPOS_BRANCH https://github.com/BlueBrain/spack.git .

# Add custom repositories: order matters, last one will be preferred
RUN spack repo add --scope=site $REPOS_ROOT/bluebrain/repo-patches
RUN spack repo add --scope=site $REPOS_ROOT/bluebrain/repo-bluebrain

# Possible ARM customizations (require Spack sourced)
# COPY acfl.sh acfl.sh
# RUN ./acfl.sh
Expand Down Expand Up @@ -107,13 +116,10 @@ ONBUILD RUN if [ -n "${CACHE_BUCKET}" ]; then \
fi
ONBUILD RUN spack config blame mirrors

ONBUILD RUN mkdir $REPOS_ROOT && cd $REPOS_ROOT \
&& pwd && echo $REPOS_ROOT && echo $REPOS_BRANCH && ls -al \
&& git clone --depth=1 --single-branch --branch $REPOS_BRANCH https://github.com/BlueBrain/spack.git .

# Add custom repositories: order matters, last one will be preferred
ONBUILD RUN spack repo add --scope=site $REPOS_ROOT/bluebrain/repo-patches
ONBUILD RUN spack repo add --scope=site $REPOS_ROOT/bluebrain/repo-bluebrain
# Update our repos
ONBUILD RUN cd $REPOS_ROOT \
&& git fetch --depth=1 origin $REPOS_BRANCH \
&& git reset --hard FETCH_HEAD

ONBUILD COPY key.pub spack_key.pub
ONBUILD COPY key spack_key
Expand Down

0 comments on commit 2f216c7

Please sign in to comment.