| 1 |
# SPDX-FileCopyrightText: 2026 Oak Ridge National Laboratory and Contributors |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: Apache-2.0 |
| 4 |
|
| 5 |
ARG baseos=ubuntu-bionic |
| 6 |
FROM spack/${baseos} |
| 7 |
|
| 8 |
# Setup sudo and the adios user |
| 9 |
COPY setup-user.sh /root/setup-user.sh |
| 10 |
RUN /root/setup-user.sh && \ |
| 11 |
rm -f /root/setup-user.sh |
| 12 |
|
| 13 |
# Switch to spack@develop |
| 14 |
RUN cd ${SPACK_ROOT} && \ |
| 15 |
git init && \ |
| 16 |
git remote add origin https://github.com/spack/spack.git && \ |
| 17 |
git fetch origin develop && \ |
| 18 |
git checkout -f develop && \ |
| 19 |
rm -rf .git |
| 20 |
|
| 21 |
# Fix the python version being used |
| 22 |
ENV SPACK_PYTHON=/usr/bin/python3.6 |
| 23 |
|
| 24 |
# Setup the default configuration |
| 25 |
COPY packages.yaml $SPACK_ROOT/etc/spack/packages.yaml |
| 26 |
COPY modules.yaml $SPACK_ROOT/etc/spack/modules.yaml |
| 27 |
RUN rm -rf /root/.spack && \ |
| 28 |
spack compiler find --scope site |
| 29 |
|
| 30 |
# Install dependencies |
| 31 |
RUN spack install \ |
| 32 |
-v -j$(grep -c '^processor' /proc/cpuinfo) --only dependencies \ |
| 33 |
adios2 && \ |
| 34 |
spack clean -a |