-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
658 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
FROM ubuntu:22.04 AS builder | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Build command | ||
# docker build -t ghcr.io/converged-computing/ensemble-amg2023:spack . | ||
# docker push ghcr.io/converged-computing/ensemble-amg2023:spack | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \ | ||
autotools-dev \ | ||
autoconf \ | ||
automake \ | ||
cmake \ | ||
git \ | ||
python3 \ | ||
dnsutils \ | ||
openssh-server \ | ||
openssh-client \ | ||
apt-utils \ | ||
gcc \ | ||
unzip \ | ||
gfortran \ | ||
g++ \ | ||
build-essential \ | ||
software-properties-common | ||
|
||
# What we want to install and how we want to install it | ||
# is specified in a manifest file (spack.yaml) | ||
# IMPORTANT: cpu gets +int64, and gpu +mixedint | ||
RUN mkdir /opt/spack-environment \ | ||
&& (echo "spack:" \ | ||
&& echo " specs:" \ | ||
&& echo " - openmpi@4.1.4 +legacylaunchers" \ | ||
&& echo " - pmix@4.2.2" \ | ||
&& echo " - amg2023 +mpi +openmp" \ | ||
&& echo " - hypre +int64 +openmp" \ | ||
&& echo " concretizer:" \ | ||
&& echo " unify: true" \ | ||
&& echo " config:" \ | ||
&& echo " install_tree: /opt/software" \ | ||
&& echo " view: /opt/view") > /opt/spack-environment/spack.yaml | ||
|
||
RUN cd /opt/spack-environment \ | ||
&& git clone --depth 1 --branch v0.22.1 /~https://github.com/spack/spack.git \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate . \ | ||
&& spack external find openssh \ | ||
&& spack external find cmake \ | ||
&& spack install --reuse --fail-fast \ | ||
&& spack gc -y | ||
|
||
# Modifications to the environment that are necessary to run | ||
RUN cd /opt/spack-environment \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh | ||
|
||
WORKDIR /opt | ||
EXPOSE 22 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /opt/spack-environment /opt/spack-environment | ||
COPY --from=builder /opt/software /opt/software | ||
COPY --from=builder /opt/view /opt/view | ||
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install --no-install-recommends \ | ||
ca-certificates \ | ||
openssh-server \ | ||
openssh-client \ | ||
dnsutils \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Finally, install oras for saving artifacts | ||
RUN export VERSION="1.1.0" && \ | ||
curl -LO "/~https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz" && \ | ||
mkdir -p oras-install/ && \ | ||
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/ && \ | ||
mv oras-install/oras /usr/local/bin/ && \ | ||
rm -rf oras_${VERSION}_*.tar.gz oras-install/ |
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,80 @@ | ||
FROM ubuntu:22.04 AS builder | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Build command | ||
# docker build -t ghcr.io/converged-computing/ensemble-kripke:spack . | ||
# docker push ghcr.io/converged-computing/ensemble-kripke:spack | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \ | ||
autotools-dev \ | ||
autoconf \ | ||
automake \ | ||
cmake \ | ||
git \ | ||
python3 \ | ||
dnsutils \ | ||
openssh-server \ | ||
openssh-client \ | ||
apt-utils \ | ||
gcc \ | ||
unzip \ | ||
gfortran \ | ||
g++ \ | ||
build-essential \ | ||
software-properties-common | ||
|
||
RUN mkdir /opt/spack-environment \ | ||
&& (echo "spack:" \ | ||
&& echo " specs:" \ | ||
&& echo " - openmpi@4.1.4 +legacylaunchers" \ | ||
&& echo " - pmix@4.2.2" \ | ||
&& echo " - kripke@1.2.2 +mpi +openmp" \ | ||
&& echo " concretizer:" \ | ||
&& echo " unify: true" \ | ||
&& echo " config:" \ | ||
&& echo " install_tree: /opt/software" \ | ||
&& echo " view: /opt/view") > /opt/spack-environment/spack.yaml | ||
|
||
RUN cd /opt/spack-environment \ | ||
&& git clone --depth 1 --branch v0.22.1 /~https://github.com/spack/spack.git \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate . \ | ||
&& spack external find openssh \ | ||
&& spack external find cmake \ | ||
&& spack install --reuse --fail-fast \ | ||
&& spack gc -y | ||
|
||
# Modifications to the environment that are necessary to run | ||
RUN cd /opt/spack-environment \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh | ||
|
||
WORKDIR /opt | ||
EXPOSE 22 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /opt/spack-environment /opt/spack-environment | ||
COPY --from=builder /opt/software /opt/software | ||
COPY --from=builder /opt/view /opt/view | ||
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install --no-install-recommends \ | ||
ca-certificates \ | ||
openssh-server \ | ||
openssh-client \ | ||
dnsutils \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Finally, install oras for saving artifacts | ||
RUN export VERSION="1.1.0" && \ | ||
curl -LO "/~https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz" && \ | ||
mkdir -p oras-install/ && \ | ||
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/ && \ | ||
mv oras-install/oras /usr/local/bin/ && \ | ||
rm -rf oras_${VERSION}_*.tar.gz oras-install/ |
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,80 @@ | ||
FROM ubuntu:22.04 AS builder | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Build command | ||
# docker build -t ghcr.io/converged-computing/ensemble-laghos:spack . | ||
# docker push ghcr.io/converged-computing/ensemble-laghos:spack | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \ | ||
autotools-dev \ | ||
autoconf \ | ||
automake \ | ||
cmake \ | ||
git \ | ||
python3 \ | ||
dnsutils \ | ||
openssh-server \ | ||
openssh-client \ | ||
apt-utils \ | ||
gcc \ | ||
unzip \ | ||
gfortran \ | ||
g++ \ | ||
build-essential \ | ||
software-properties-common | ||
|
||
RUN mkdir /opt/spack-environment \ | ||
&& (echo "spack:" \ | ||
&& echo " specs:" \ | ||
&& echo " - openmpi@4.1.4 +legacylaunchers" \ | ||
&& echo " - pmix@4.2.2" \ | ||
&& echo " - laghos" \ | ||
&& echo " concretizer:" \ | ||
&& echo " unify: true" \ | ||
&& echo " config:" \ | ||
&& echo " install_tree: /opt/software" \ | ||
&& echo " view: /opt/view") > /opt/spack-environment/spack.yaml | ||
|
||
RUN cd /opt/spack-environment \ | ||
&& git clone --depth 1 --branch v0.22.1 /~https://github.com/spack/spack.git \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate . \ | ||
&& spack external find openssh \ | ||
&& spack external find cmake \ | ||
&& spack install --reuse --fail-fast \ | ||
&& spack gc -y | ||
|
||
# Modifications to the environment that are necessary to run | ||
RUN cd /opt/spack-environment \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh | ||
|
||
WORKDIR /opt | ||
EXPOSE 22 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /opt/spack-environment /opt/spack-environment | ||
COPY --from=builder /opt/software /opt/software | ||
COPY --from=builder /opt/view /opt/view | ||
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install --no-install-recommends \ | ||
ca-certificates \ | ||
openssh-server \ | ||
openssh-client \ | ||
dnsutils \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Finally, install oras for saving artifacts | ||
RUN export VERSION="1.1.0" && \ | ||
curl -LO "/~https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz" && \ | ||
mkdir -p oras-install/ && \ | ||
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/ && \ | ||
mv oras-install/oras /usr/local/bin/ && \ | ||
rm -rf oras_${VERSION}_*.tar.gz oras-install/ |
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,80 @@ | ||
FROM ubuntu:22.04 AS builder | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Build command | ||
# docker build -t ghcr.io/converged-computing/ensemble-lammps:spack . | ||
# docker push ghcr.io/converged-computing/ensemble-lammps:spack | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \ | ||
autotools-dev \ | ||
autoconf \ | ||
automake \ | ||
cmake \ | ||
git \ | ||
python3 \ | ||
dnsutils \ | ||
openssh-server \ | ||
openssh-client \ | ||
apt-utils \ | ||
gcc \ | ||
unzip \ | ||
gfortran \ | ||
g++ \ | ||
build-essential \ | ||
software-properties-common | ||
|
||
RUN mkdir /opt/spack-environment \ | ||
&& (echo "spack:" \ | ||
&& echo " specs:" \ | ||
&& echo " - openmpi@4.1.4 +legacylaunchers" \ | ||
&& echo " - pmix@4.2.2" \ | ||
&& echo " - lammps +mpi +openmp +reaxff" \ | ||
&& echo " concretizer:" \ | ||
&& echo " unify: true" \ | ||
&& echo " config:" \ | ||
&& echo " install_tree: /opt/software" \ | ||
&& echo " view: /opt/view") > /opt/spack-environment/spack.yaml | ||
|
||
RUN cd /opt/spack-environment \ | ||
&& git clone --depth 1 --branch v0.22.1 /~https://github.com/spack/spack.git \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate . \ | ||
&& spack external find openssh \ | ||
&& spack external find cmake \ | ||
&& spack install --reuse --fail-fast \ | ||
&& spack gc -y | ||
|
||
# Modifications to the environment that are necessary to run | ||
RUN cd /opt/spack-environment \ | ||
&& . spack/share/spack/setup-env.sh \ | ||
&& spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh | ||
|
||
WORKDIR /opt | ||
EXPOSE 22 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /opt/spack-environment /opt/spack-environment | ||
COPY --from=builder /opt/software /opt/software | ||
COPY --from=builder /opt/view /opt/view | ||
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh | ||
|
||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install --no-install-recommends \ | ||
ca-certificates \ | ||
openssh-server \ | ||
openssh-client \ | ||
dnsutils \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Finally, install oras for saving artifacts | ||
RUN export VERSION="1.1.0" && \ | ||
curl -LO "/~https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz" && \ | ||
mkdir -p oras-install/ && \ | ||
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/ && \ | ||
mv oras-install/oras /usr/local/bin/ && \ | ||
rm -rf oras_${VERSION}_*.tar.gz oras-install/ |
Oops, something went wrong.