-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #597 from douglasjacobsen/apt_dockerfile
Update test triggers to use python versions and support debian based distros
- Loading branch information
Showing
9 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG BASE_IMG=debian | ||
ARG BASE_VER=12.5 | ||
FROM ${BASE_IMG}:${BASE_VER} as builder | ||
|
||
ARG SPACK_REF=releases/latest | ||
ARG PYTHON_VER=3.11.6 | ||
RUN apt-get update && apt-get install -yq build-essential make git python3 python3-venv python3-pip wget mercurial which subversion curl gcc tar bzip2 && rm -rf /var/lib/apt/lists/* | ||
RUN cd /opt && \ | ||
git clone https://github.com/spack/spack && \ | ||
cd spack && \ | ||
git checkout $SPACK_REF && \ | ||
. /opt/spack/share/spack/setup-env.sh && \ | ||
spack install --deprecated py-pip ^python@${PYTHON_VER} && \ | ||
spack clean -a | ||
RUN echo -e ". /opt/spack/share/spack/setup-env.sh\n spack load py-pip ^python@${PYTHON_VER}\n export SPACK_PYTHON=`which python3`" > /etc/profile.d/ramble.sh | ||
RUN cd /opt && \ | ||
. spack/share/spack/setup-env.sh && \ | ||
spack load py-pip ^python@${PYTHON_VER} && \ | ||
wget https://raw.githubusercontent.com/GoogleCloudPlatform/ramble/develop/requirements.txt && \ | ||
python -m pip install -r /opt/requirements.txt | ||
|
||
FROM ${BASE_IMG}:${BASE_VER} | ||
|
||
COPY --from=builder / / | ||
|
||
ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l", "-c", "$*", "--" ] | ||
CMD [ "/bin/bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters