File: Dockerfile

package info (click to toggle)
sopt 4.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,632 kB
  • sloc: cpp: 13,011; xml: 182; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
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
FROM uclrits/cppdev:18.10

USER root
WORKDIR /build
ENV LD_LIBRARY_PATH /usr/local/lib

# Build sopt
RUN git clone https://github.com/astro-informatics/sopt.git
RUN mkdir -p /build/sopt/build && cd /build/sopt/build && \
    cmake .. -DCMAKE_BUILD_TYPE=Release \
    -Dtests=ON \
    -Dexamples=OFF \
    -Dbenchmarks=OFF \
    -DMPIEXEC:FILEPATH=$(which mpirun) -DMPIEXEC_MAX_NUMPROCS=4 \
    -DMPIEXEC_PREFLAGS="--oversubscribe" && \
    make && make install

RUN useradd -ms /bin/bash purifier

USER purifier
ENV HOME /home/purifier
RUN cp /etc/zsh/newuser.zshrc.recommended /home/purifier/.zshrc
WORKDIR /mydata
CMD ["zsh"]

# docker build -t uclrits/sopt:18.10