-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
30 lines (21 loc) · 1009 Bytes
/
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
FROM rootproject/root-ubuntu16
MAINTAINER [email protected]
USER root
# need kerberos to access eos
ADD krb5.conf /etc/krb5.conf
RUN apt-get -y update \
&& apt-get -y install krb5-user
RUN apt-get -y update \
&& apt-get -y install wget
# adding the analysis code to the container
WORKDIR /code
ADD . /code
# setup EvtGen
#RUN chmod +x setupEvtGen.sh
#RUN export ROOTSYS=/usr/local/ && printenv && ./setupEvtGen.sh
# build RapidSim
RUN export ROOTSYS=/usr/local/ && mkdir -p build && cd build && cmake ../ && make
# build RapidSim with EvtGen
#RUN export ROOTSYS=/usr/local/ && export LD_LIBRARY_PATH=/code/EvtGen/external/HepMC/lib:/code/EvtGen/external/pythia8186/lib:/code/EvtGen/external/PHOTOS/lib:/code/EvtGen/external/TAUOLA/lib:/code/EvtGen/evtgen/lib:$LD_LIBRARY_PATH && export PYTHIA8DATA=/code/EvtGen/external/pythia8186/xmldoc && export EVTGEN_ROOT=/code/EvtGen/evtgen/ && printenv && mkdir -p build-evtgen && cd build-evtgen && cmake ../ && make
RUN chmod +x run.sh
CMD ["./run.sh"]