-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (53 loc) · 1.57 KB
/
Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM debian:bookworm
WORKDIR /root
RUN mkdir /ndmanager
# Installing dependencies
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y python3-pip python-is-python3 git \
build-essential cmake python3-venv \
gfortran libhdf5-dev && \
apt-get autoremove
# Python setup
RUN python3 -m venv /ve \
&& /ve/bin/pip install --upgrade pip
# NJOY installation
RUN git clone --single-branch --depth 1 https://github.com/njoy/NJOY2016 \
&& cd NJOY2016 \
&& mkdir build \
&& cd build \
&& cmake -Dstatic=on .. \
&& make 2>/dev/null -j${compile_cores} install \
&& cd $HOME \
&& rm -rf NJOY2016
# OpenMC installation
RUN git clone https://github.com/openmc-dev/openmc.git \
&& cd openmc \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j 4 \
&& make install \
&& cd .. \
&& /ve/bin/pip install . \
&& cd $HOME \
&& rm -rf openmc
# Sandy installation
RUN git clone --branch v1.1 https://github.com/luca-fiorito-11/sandy.git \
&& cd sandy \
&& /ve/bin/pip install . \
&& cd $HOME \
&& rm -rf sandy
# Install the develop version of NDManager
RUN git clone https://github.com/nplinden/ndmanager.git \
&& cd ndmanager \
&& /ve/bin/pip install . \
&& cd $HOME \
&& rm -rf ndmanager
# Define NDMANAGER environment variables
ENV NDMANAGER_ENDF6="/ndmanager/endf6"
ENV NDMANAGER_HDF5="/ndmanager/hdf5"
ENV NDMANAGER_CHAINS="/ndmanager/chains"
ENV NDMANAGER_SAMPLES="/ndmanager/samples"
ENV NDMANAGER_COV="/ndmanager/cov"
ENV PATH=/ve/bin:$PATH