-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
54 lines (47 loc) · 1.73 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
FROM condaforge/miniforge3:24.9.2-0
ARG APPS_DIR=/usr/local
RUN conda create -y --name geant --channel=conda-forge geant4 root=6.30 cmake make
RUN conda clean --all -y
SHELL ["conda", "run", "-n", "geant", "/bin/bash", "-c"]
ARG VMC_DIR=$APPS_DIR/vmc
RUN mkdir $VMC_DIR
RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
cd $VMC_DIR/git_source && \
git checkout v2-0 && \
cd .. && \
mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=$VMC_DIR $VMC_DIR/git_source && \
make -j4 && \
make install && \
cd .. && \
rm -rf build git_source
ARG VGM_DIR=$APPS_DIR/vgm
RUN mkdir $VGM_DIR
RUN git clone http://github.com/vmc-project/vgm.git $VGM_DIR/git_source && \
cd $VGM_DIR/git_source && \
git checkout v5-2 && \
cd .. && \
mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=$VGM_DIR -DWITH_EXAMPLES=OFF -DINSTALL_EXAMPLES=OFF $VGM_DIR/git_source && \
make -j4 && \
make install && \
cd .. && \
rm -rf build git_source
ARG GEANT4_VMC_DIR=$APPS_DIR/geant4_vmc
RUN mkdir $GEANT4_VMC_DIR
RUN git clone http://github.com/vmc-project/geant4_vmc.git $GEANT4_VMC_DIR/git_source && \
cd $GEANT4_VMC_DIR/git_source && \
git checkout v6-6-p2 && \
cd .. && \
mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=$GEANT4_VMC_DIR -DGeant4VMC_USE_VGM=ON -DGeant4VMC_BUILD_EXAMPLES=ON -DGeant4VMC_USE_GEANT4_UI=OFF -DGeant4VMC_USE_GEANT4_VIS=OFF -DGeant4VMC_INSTALL_EXAMPLES=ON $GEANT4_VMC_DIR/git_source && \
make -j4 && \
make install && \
cd .. && \
rm -rf build git_source
ARG USE_VGM=1
RUN export LD_LIBRARY_PATH=$VGM_DIR/lib:VMC_DIR/lib:GEANT4_VMC_DIR/lib:$LD_LIBRARY_PATH && \
echo $LD_LIBRARY_PATH