Skip to content
Snippets Groups Projects
Commit d25d96b0 authored by David Blyth's avatar David Blyth
Browse files

Retabbed

parent fb7c1672
Branches
Tags
No related merge requests found
# Author: David Blyth # Author: David Blyth
# Description: Docker build intended to replicate the FPaDSim environment # Description: Docker build intended to replicate the FPaDSim environment
# created by Sergei Chekanov # created by Sergei Chekanov
FROM dbcooper/arch:2017-02-18 FROM dbcooper/arch:2017-02-18
# Set up basic environment # Set up basic environment
RUN pacman -S --noconfirm \ RUN pacman -S --noconfirm \
sed \ sed \
sudo sudo
RUN useradd -m -G wheel fpadsimuser && \ RUN useradd -m -G wheel fpadsimuser && \
sed -i.bak 's/# \(%wheel ALL=(ALL) NOPASSWD: ALL\)/\1/' /etc/sudoers sed -i.bak 's/# \(%wheel ALL=(ALL) NOPASSWD: ALL\)/\1/' /etc/sudoers
USER fpadsimuser USER fpadsimuser
WORKDIR /home/fpadsimuser WORKDIR /home/fpadsimuser
...@@ -19,93 +19,93 @@ CMD /bin/bash -l ...@@ -19,93 +19,93 @@ CMD /bin/bash -l
# ROOT # ROOT
RUN sudo pacman -S --noconfirm \ RUN sudo pacman -S --noconfirm \
awk \ awk \
binutils \ binutils \
cmake \ cmake \
fakeroot \ fakeroot \
fftw \ fftw \
gcc \ gcc \
git \ git \
glew \ glew \
glu \ glu \
grep \ grep \
gsl \ gsl \
gzip \ gzip \
make \ make \
python2 \ python2 \
libx11 \ libx11 \
libxft \ libxft \
libxpm libxpm
ENV ROOT_VERSION 6-10-00 ENV ROOT_VERSION 6-10-00
RUN git clone https://github.com/root-project/root.git && \ RUN git clone https://github.com/root-project/root.git && \
cd root && \ cd root && \
git checkout tags/v$ROOT_VERSION && \ git checkout tags/v$ROOT_VERSION && \
cd .. && \ cd .. && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
cmake ../root \ cmake ../root \
-Dbuiltin_glew=OFF \ -Dbuiltin_glew=OFF \
-Dcxx14=ON \ -Dcxx14=ON \
-Dgdml=ON \ -Dgdml=ON \
-Dgsl_shared=ON \ -Dgsl_shared=ON \
-Dmathmore=ON \ -Dmathmore=ON \
-Dminuit2=ON \ -Dminuit2=ON \
-Dopengl=ON && \ -Dopengl=ON && \
make -j30 && \ make -j30 && \
sudo make install && \ sudo make install && \
cd .. && \ cd .. && \
rm -rf build root rm -rf build root
RUN sudo bash -c 'echo ". /usr/local/bin/thisroot.sh" > /etc/profile.d/ROOT.sh' && \ RUN sudo bash -c 'echo ". /usr/local/bin/thisroot.sh" > /etc/profile.d/ROOT.sh' && \
sudo chmod +x /etc/profile.d/ROOT.sh sudo chmod +x /etc/profile.d/ROOT.sh
# CLHEP # CLHEP
RUN sudo pacman -S --noconfirm \ RUN sudo pacman -S --noconfirm \
wget \ wget \
xerces-c xerces-c
ENV CLHEP_VERSION 2.3.4.4 ENV CLHEP_VERSION 2.3.4.4
RUN wget http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-$CLHEP_VERSION.tgz -q -O clhep.tgz && \ RUN wget http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-$CLHEP_VERSION.tgz -q -O clhep.tgz && \
tar -xzf clhep.tgz && \ tar -xzf clhep.tgz && \
mv $CLHEP_VERSION/CLHEP ./ && \ mv $CLHEP_VERSION/CLHEP ./ && \
rm -rf $CLHEP_VERSION && \ rm -rf $CLHEP_VERSION && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
CXXFLAGS=-std=c++14 cmake ../CLHEP && \ CXXFLAGS=-std=c++14 cmake ../CLHEP && \
make -j30 && \ make -j30 && \
sudo make install && \ sudo make install && \
cd .. && \ cd .. && \
rm -rf build CLHEP clhep.tgz rm -rf build CLHEP clhep.tgz
# GEANT4 # GEANT4
ENV GEANT4_VERSION 10.3.1 ENV GEANT4_VERSION 10.3.1
RUN git clone https://github.com/Geant4/geant4.git && \ RUN git clone https://github.com/Geant4/geant4.git && \
cd geant4 && \ cd geant4 && \
git checkout tags/v$GEANT4_VERSION && \ git checkout tags/v$GEANT4_VERSION && \
cd .. && \ cd .. && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
cmake ../geant4 \ cmake ../geant4 \
-DGEANT4_BUILD_CXXSTD=14 \ -DGEANT4_BUILD_CXXSTD=14 \
-DGEANT4_INSTALL_DATA=ON \ -DGEANT4_INSTALL_DATA=ON \
-DGEANT4_USE_GDML=ON \ -DGEANT4_USE_GDML=ON \
-DGEANT4_USE_SYSTEM_CLHEP=ON && \ -DGEANT4_USE_SYSTEM_CLHEP=ON && \
make -j30 && \ make -j30 && \
sudo make install && \ sudo make install && \
cd .. && \ cd .. && \
rm -rf build geant4 rm -rf build geant4
RUN sudo bash -c 'echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib64" >> /etc/profile.d/geant4.sh' && \ RUN sudo bash -c 'echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib64" >> /etc/profile.d/geant4.sh' && \
sudo bash -c 'echo ". /usr/local/bin/geant4.sh" > /etc/profile.d/geant4.sh' && \ sudo bash -c 'echo ". /usr/local/bin/geant4.sh" > /etc/profile.d/geant4.sh' && \
sudo chmod +x /etc/profile.d/geant4.sh sudo chmod +x /etc/profile.d/geant4.sh
# Oracle JDK # Oracle JDK
RUN sudo pacman -S --noconfirm \ RUN sudo pacman -S --noconfirm \
file file
RUN git clone https://aur.archlinux.org/jdk.git && \ RUN git clone https://aur.archlinux.org/jdk.git && \
cd jdk && \ cd jdk && \
...@@ -119,20 +119,20 @@ ENV LCIO_VERSION 02-09 ...@@ -119,20 +119,20 @@ ENV LCIO_VERSION 02-09
ENV LCIO_DIR /opt/LCIO ENV LCIO_DIR /opt/LCIO
RUN git clone https://github.com/iLCSoft/LCIO.git /opt/LCIO && \ RUN git clone https://github.com/iLCSoft/LCIO.git /opt/LCIO && \
cd $LCIO_DIR && \ cd $LCIO_DIR && \
git checkout tags/v$LCIO_VERSION && \ git checkout tags/v$LCIO_VERSION && \
cd ~/ && \ cd ~/ && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
CXXFLAGS=-std=c++14 cmake $LCIO_DIR \ CXXFLAGS=-std=c++14 cmake $LCIO_DIR \
-DBUILD_ROOTDICT=ON && \ -DBUILD_ROOTDICT=ON && \
make -j30 install && \ make -j30 install && \
cd ../ && \ cd ../ && \
rm -rf build rm -rf build
RUN sudo bash -c "echo 'export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$LCIO_DIR/lib' >> /etc/profile.d/LCIO.sh" && \ RUN sudo bash -c "echo 'export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$LCIO_DIR/lib' >> /etc/profile.d/LCIO.sh" && \
sudo bash -c "echo 'export PATH=\$PATH:$LCIO_DIR/bin' >> /etc/profile.d/LCIO.sh" && \ sudo bash -c "echo 'export PATH=\$PATH:$LCIO_DIR/bin' >> /etc/profile.d/LCIO.sh" && \
sudo chmod +x /etc/profile.d/LCIO.sh sudo chmod +x /etc/profile.d/LCIO.sh
# iLCUtil # iLCUtil
ENV ILCUTIL_DIR /opt/iLCUtil ENV ILCUTIL_DIR /opt/iLCUtil
...@@ -157,7 +157,7 @@ ENV SLIC_DIR /opt/slic ...@@ -157,7 +157,7 @@ ENV SLIC_DIR /opt/slic
RUN git clone https://github.com/decibelCooper/slic.git && \ RUN git clone https://github.com/decibelCooper/slic.git && \
cd slic && \ cd slic && \
git checkout 30c6a84ec5d570390ef75fa811117d24afa67462 && \ git checkout 30c6a84ec5d570390ef75fa811117d24afa67462 && \
echo 'SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ldl" )' >> CMakeLists.txt && \ echo 'SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ldl" )' >> CMakeLists.txt && \
cd ../ && \ cd ../ && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
...@@ -182,21 +182,21 @@ RUN git clone https://github.com/decibelCooper/slic.git && \ ...@@ -182,21 +182,21 @@ RUN git clone https://github.com/decibelCooper/slic.git && \
# LCSIM # LCSIM
RUN sudo pacman -S --noconfirm \ RUN sudo pacman -S --noconfirm \
maven \ maven \
which which
ENV LCSIM_COMMIT 917843d955e4de308bb514e6793388e341cfc589 ENV LCSIM_COMMIT 917843d955e4de308bb514e6793388e341cfc589
RUN git clone https://github.com/decibelCooper/lcsim.git /opt/lcsim && \ RUN git clone https://github.com/decibelCooper/lcsim.git /opt/lcsim && \
cd /opt/lcsim && \ cd /opt/lcsim && \
git checkout $LCSIM_COMMIT && \ git checkout $LCSIM_COMMIT && \
mvn -DskipTests && \ mvn -DskipTests && \
rm -rf ~/.m2 rm -rf ~/.m2
ENV LCSIM_VERSION 4.0-SNAPSHOT ENV LCSIM_VERSION 4.0-SNAPSHOT
RUN echo "export CLICSOFT=/opt/lcsim; export GEOMCONVERTERDIR=\$CLICSOFT/detector-framework; export GCONVERTER=\$GEOMCONVERTERDIR/target/lcsim-detector-framework-$LCSIM_VERSION-bin.jar" | sudo bash -c "cat >> /etc/profile.d/lcsim.sh" && \ RUN echo "export CLICSOFT=/opt/lcsim; export GEOMCONVERTERDIR=\$CLICSOFT/detector-framework; export GCONVERTER=\$GEOMCONVERTERDIR/target/lcsim-detector-framework-$LCSIM_VERSION-bin.jar" | sudo bash -c "cat >> /etc/profile.d/lcsim.sh" && \
sudo chmod +x /etc/profile.d/lcsim.sh sudo chmod +x /etc/profile.d/lcsim.sh
# PandoraPFA # PandoraPFA
ENV PANDORA_PFA_VERSION v02-09-00 ENV PANDORA_PFA_VERSION v02-09-00
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment