File: Dockerfile.dependencies

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 33,764 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,825; lisp: 1,106; xml: 1,049; makefile: 579; lex: 557
file content (30 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG baseos=ubuntu-bionic
FROM spack/${baseos}

# Setup sudo and the adios user
COPY setup-user.sh /root/setup-user.sh
RUN /root/setup-user.sh && \
    rm -f /root/setup-user.sh

# Switch to spack@develop
RUN cd ${SPACK_ROOT} && \
    git init && \
    git remote add origin https://github.com/spack/spack.git && \
    git fetch origin develop && \
    git checkout -f develop && \
    rm -rf .git

# Fix the python version being used
ENV SPACK_PYTHON=/usr/bin/python3.6

# Setup the default configuration
COPY packages.yaml $SPACK_ROOT/etc/spack/packages.yaml
COPY modules.yaml $SPACK_ROOT/etc/spack/modules.yaml
RUN rm -rf /root/.spack && \
    spack compiler find --scope site

# Install dependencies
RUN spack install \
        -v -j$(grep -c '^processor' /proc/cpuinfo) --only dependencies \
        adios2 && \
    spack clean -a