CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
87 lines
2.5 KiB
Docker
87 lines
2.5 KiB
Docker
# Build stage with Spack pre-installed and ready to be used
|
|
FROM spack/ubuntu-focal:latest as builder
|
|
# FROM ecpe4s/ubuntu18.04-spack-x86_64:0.15.3 as builder
|
|
|
|
ARG GCC_VERSION=8
|
|
ARG CLANG_VERSION=11
|
|
ARG ENABLE_DISPLAY=0
|
|
|
|
# Install the software, remove unecessary deps
|
|
COPY ./apt.sh /tmp/apt.sh
|
|
RUN cd /tmp && /tmp/apt.sh
|
|
|
|
ARG COMPILER_SPEC=gcc@8.4.0
|
|
ARG VERSION=develop
|
|
ARG CUDA_ARCH=70
|
|
ARG CUDA_ARCH_NAME=volta
|
|
|
|
# What we want to install and how we want to install it
|
|
# is specified in a manifest file (spack.yaml)
|
|
RUN mkdir /opt/environment \
|
|
&& (echo "spack:" \
|
|
&& echo " specs:" \
|
|
&& echo " - cuda" \
|
|
&& echo " - nccl cuda_arch=${CUDA_ARCH}" \
|
|
&& echo " - papi" \
|
|
&& echo " - mpich" \
|
|
&& echo " - gotcha" \
|
|
&& echo " - dyninst" \
|
|
&& echo " - caliper~papi" \
|
|
&& echo " - gperftools" \
|
|
&& echo " concretizer:" \
|
|
&& echo " unify: when_possible" \
|
|
&& echo " config:" \
|
|
&& echo " install_tree: /opt/software" \
|
|
&& echo " view: /opt/view" \
|
|
&& echo " packages:" \
|
|
&& echo " rdma-core:" \
|
|
&& echo " externals:" \
|
|
&& echo " - spec: rdma-core@17.1" \
|
|
&& echo " prefix: /usr" \
|
|
&& echo " buildable: false") > /opt/environment/spack.yaml
|
|
|
|
# Install the software, remove unecessary deps
|
|
RUN cd /opt/environment && \
|
|
wget https://oaciss.uoregon.edu/e4s/e4s.pub && \
|
|
spack gpg trust e4s.pub && \
|
|
spack mirror add E4S https://cache.e4s.io/e4s && \
|
|
rm e4s.pub && \
|
|
spack compiler find && \
|
|
spack external find && \
|
|
spack --env . install --reuse && \
|
|
spack gc -y && \
|
|
spack clean -a
|
|
|
|
# Modifications to the environment that are necessary to run
|
|
RUN cd /opt/environment && \
|
|
spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh
|
|
|
|
# Bare OS image to run the installed executables
|
|
FROM spack/ubuntu-focal:latest
|
|
|
|
COPY --from=builder / /
|
|
|
|
RUN echo 'export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][timemory]\[$(tput setaf 2)\] \u\[$(tput sgr0)\]:\w $ \[$(tput sgr0)\]"' >> ~/.bashrc
|
|
|
|
ENV HOME /root
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US
|
|
ENV LC_ALL C
|
|
ENV SHELL /bin/bash
|
|
ENV BASH_ENV /etc/bash.bashrc
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
COPY ./etc/profile.d/*.sh /etc/profile.d/
|
|
COPY ./etc/bash.bashrc /etc/
|
|
COPY ./etc/compute-dir-size.py /etc/
|
|
|
|
LABEL "app"="timemory"
|
|
LABEL "mpi"="mpich"
|
|
|
|
USER root
|
|
WORKDIR /home
|
|
SHELL [ "/bin/bash", "--login", "-c" ]
|
|
|
|
# ENTRYPOINT [ "/runtime-entrypoint.sh" ]
|
|
ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"]
|