-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
48 lines (47 loc) · 2.24 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
FROM ubuntu:18.04
# tools needed to setup repository
# hadolint ignore=DL3027
RUN apt update; \
DEBIAN_FRONTEND=noninteractive apt upgrade -y; \
apt install -y wget gnupg;
# setup of the fcc apt repository
# hadolint ignore=DL3027
RUN wget -q https://fcc-pileup.web.cern.ch/fcc-pileup/sw/latest/x86_64-ubuntu1804-gcc8-opt/keyFile; \
apt-key add keyFile; \
rm keyFile; \
wget -q https://fcc-pileup.web.cern.ch/fcc-pileup/sw/latest/x86_64-ubuntu1804-gcc8-opt/hep-fccrepoconfig_0.0-3.deb; \
dpkg -i hep-fccrepoconfig_0.0-3.deb; \
rm hep-fccrepoconfig_0.0-3.deb; \
apt update; \
DEBIAN_FRONTEND=noninteractive apt upgrade -y; \
apt install -y hep-fccsw;
# download data files needed to run geant4
# hadolint ignore=DL3027
RUN apt install -y hep-geant4data;
## necessary shell environment (usually sourced from /etc/profile)
ENV G4NEUTRONHPDATA=/usr/local/share/Geant4/data/G4NDL4.5 \
G4LEDATA=/usr/local/share/Geant4/data/G4EMLOW7.7 \
G4LEVELGAMMADATA=/usr/local/share/Geant4/data/PhotonEvaporation5.3 \
G4RADIOACTIVEDATA=/usr/local/share/Geant4/data/RadioactiveDecay5.3 \
G4NEUTRONXSDATA=/usr/local/share/Geant4/data/G4NEUTRONXS1.4 \
G4PIIDATA=/usr/local/share/Geant4/data/G4PII1.3 \
G4REALSURFACEDATA=/usr/local/share/Geant4/data/RealSurface2.1.1 \
G4SAIDXSDATA=/usr/local/share/Geant4/data/G4SAIDDATA2.0 \
G4ABLADATA=/usr/local/share/Geant4/data/G4ABLA3.1 \
G4ENSDFSTATEDATA=/usr/local/share/Geant4/data/G4ENSDFSTATE2.2 \
PYTHIA8_DIR=/usr/local \
PYTHIA8_XML=/usr/local/share/Pythia8/xmldoc \
PYTHIA8DATA=/usr/local/share/Pythia8/xmldoc \
HEPMC_PREFIX=/usr/local \
DD4hepINSTALL=/usr/local/ \
DD4hep_DIR=/usr/local/ \
DD4hep_ROOT=/usr/local/ \
DD4HEP_LIBRARY_PATH=/usr/local/lib/ \
ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH:/usr/local/include:/usr/local/include/datamodel \
PYTHONPATH=$PYTHONPATH:/usr/local/lib:/usr/local/python:/usr/local/lib/root:/opt/madgraph \
PATH=$PATH:/usr/local/scripts/:/usr/local/bin \
CPLUS_INCLUDE_DIR=$CPLUS_INCLUDE_DIR:/usr/local/include \
GAUDI_LIBRARY_PATH=/usr/local/lib \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
# hadolint ignore=DL3027
RUN DEBIAN_FRONTEND=noninteractive apt install -y python-scipy python-matplotlib;