-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (37 loc) · 1.5 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (37 loc) · 1.5 KB
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
#Official ROOT Docker image
FROM rootproject/root-ubuntu16
USER root
RUN apt-get update && apt-get install -y wget vim
# Run the following commands as super user (root):
#Instal FastJet
WORKDIR /
COPY installFastJet.sh .
RUN ./installFastJet.sh
ENV PATH "/fastjet/install/bin:${PATH}"
COPY installPythia.sh .
RUN ./installPythia.sh
ENV PATH "/pythia/install/bin:${PATH}"
ENV PYTHIA8DATA "/pythia/install/share/Pythia8/xmldoc"
RUN apt-get install -y python3 python3-pip
COPY requirements.txt .
RUN sudo -H pip3 install --upgrade pip && sudo -H pip3 install --trusted-host pypi.python.org -r requirements.txt
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password --gecos "Default user" \
--uid ${NB_UID} ${NB_USER}
WORKDIR ${HOME}
USER ${NB_USER}
RUN mkdir .jupyter && echo "c.NotebookApp.token = ''" > ${HOME}/.jupyter/jupyter_notebook_config.py
RUN mkdir -p ${HOME}/plotter/eventFiles ${HOME}/plotter/diagrams ${HOME}/temp
#COPY --chown=jovyan exerciseNb ${HOME}/exerciseNb
#COPY --chown=jovyan exerciseNbExec ${HOME}/exerciseNbExec
#COPY --chown=jovyan exercisePy ${HOME}/exercisePy
EXPOSE 8888
# When starting the container and no command is started, run bash
#CMD ["/bin/bash"]
COPY --chown=jovyan plot.ipynb Makefile *.cpp *.cc *.h *.hh ${HOME}/plotter/
COPY --chown=jovyan eventFiles/eventGG2H.txt ${HOME}/plotter/eventFiles
RUN cd plotter && make all
RUN jupyter nbextension enable --py widgetsnbextension
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]