Skip to content

Commit

Permalink
try alternate method of fetching specific commit for spack
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Nov 7, 2024
1 parent c7fbc9c commit c5ec661
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ci/ubuntu20.04-gcc11-x64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# Now we install spack and find compilers/externals
RUN mkdir -p /opt/ && cd /opt/ && git clone --depth 1 https://github.com/spack/spack.git && cd spack && git checkout 0a4563fd0253c829fb14fd576ad0368954028d5d
RUN mkdir -p /opt/spack && cd /opt/spack && \
git init && \
git remote add origin https://github.com/spack/spack.git && \
git fetch origin 0a4563fd0253c829fb14fd576ad0368954028d5d && \
git checkout FETCH_HEAD
ADD ./ci/packages.yaml /opt/spack/etc/spack/packages.yaml
RUN . /opt/spack/share/spack/setup-env.sh && spack compiler find
RUN . /opt/spack/share/spack/setup-env.sh && spack external find --not-buildable && spack external list
Expand Down

0 comments on commit c5ec661

Please sign in to comment.