File: Dockerfile

package info (click to toggle)
purify 5.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 186,836 kB
  • sloc: cpp: 17,731; python: 510; xml: 182; makefile: 7; sh: 6
file content (29 lines) | stat: -rw-r--r-- 945 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
27
28
29
FROM uclrits/sopt:18.10

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

RUN docker-apt-install casacore-dev

# Build purify
RUN git clone https://github.com/astro-informatics/purify.git
RUN mkdir -p /build/purify/build && cd /build/purify/build && \
    cmake .. -DCMAKE_BUILD_TYPE=Release \
    -Dtests=ON \
    -Dexamples=OFF \
    -Ddocasa=ON \
    -Dbenchmarks=OFF \
    -DSopt_GIT_TAG=development \
    -DCFitsIO_URL=https://github.com/UCL-RITS/BinaryBlobs-dependencies/raw/master/Astronomy/cfitsio3410.tar.gz \
    -DMPIEXEC:FILEPATH=$(which mpirun) -DMPIEXEC_MAX_NUMPROCS=4 \
    -DMPIEXEC_PREFLAGS="--oversubscribe" && \
    make && make install

USER purifier
ENV HOME /home/purifier
WORKDIR /mydata
CMD ["zsh"]
#docker build -t uclrits/purify . # to build from the current Dockerfile
#docker run -it --name sopt -v /full/localpath:/mydata  uclrits/sopt
#docker run -it --name purify -v $(pwd)/data:/mydata uclrits/purify