Skip to content
Snippets Groups Projects
Commit 456d320d authored by Kay Graf's avatar Kay Graf
Browse files

Merge branch '10-rebuild-omgsim-base-container' into 'master'

Resolve "rebuild omgsim base container"

Closes #10

See merge request common/dockerfiles!20
parents 407677c7 3132e988
No related branches found
No related tags found
No related merge requests found
......@@ -7,14 +7,16 @@ FROM docker.km3net.de/base/centos-full:7
RUN yum install -y centos-release-scl
# get devtoolset from this repo
RUN yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
RUN . /opt/rh/devtoolset-4/enable
# RUN yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
# RUN . /opt/rh/devtoolset-4/enable
RUN yum install -y devtoolset-7
RUN scl enable devtoolset-7 sh
# create folder for additional non-standard CentOS7 software
RUN mkdir $HOME/OMGsim
RUN mkdir -p /opt
# Make libconfig
RUN cd $HOME/OMGsim && wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz && tar xf libconfig-1.7.2.tar.gz -C /tmp && rm libconfig-1.7.2.tar.gz && \
RUN cd /opt && wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz && tar xf libconfig-1.7.2.tar.gz -C /tmp && rm libconfig-1.7.2.tar.gz && \
export LIBCONFIG_ROOT=`pwd`/libconfig-1.7.2 && cd /tmp/libconfig-1.7.2/ && ./configure --prefix $LIBCONFIG_ROOT && make && make install && cd - && \
rm -rf /tmp/libconfig-1.7.2/ && \
export LD_LIBRARY_PATH=${LIBCONFIG_ROOT}/lib:${LD_LIBRARY_PATH} && \
......@@ -22,7 +24,7 @@ FROM docker.km3net.de/base/centos-full:7
# Make Geant4 and dependencies
RUN yum install -y libX11-devel libXmu-devel motif motif-devel
RUN cd $HOME/OMGsim && wget http://cern.ch/geant4-data/releases/geant4.10.01.p03.tar.gz && tar xf geant4.10.01.p03.tar.gz && rm geant4.10.01.p03.tar.gz && \
RUN cd /opt && wget http://cern.ch/geant4-data/releases/geant4.10.01.p03.tar.gz && tar xf geant4.10.01.p03.tar.gz && rm geant4.10.01.p03.tar.gz && \
mkdir geant4.10.01.p03-build && cd geant4.10.01.p03-build && \
cmake -DCMAKE_INSTALL_PREFIX=../geant4.10.01.p03-install ../geant4.10.01.p03 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_XM=ON && \
make -j4 install > /dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment