forked from cosimoNigro/agnpy_paper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 1007 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
31
32
33
34
35
36
FROM condaforge/mambaforge
ARG DEBIAN_FRONTEND=noninteractive
ARG CONDA_ENV=agnpy-paper
RUN apt-get update -y
RUN apt-get install -y build-essential
# latex is needed to properly render plot labels
RUN apt-get install -y texlive-full
ADD . /root/agnpy_paper
WORKDIR /root/agnpy_paper
# install the main environment
RUN mamba env create -f agnpy_paper.yml
# initialise conda and the environment
RUN conda init bash
# install the specific tag of jetset used for the comparison plots
WORKDIR /root
RUN echo "source activate agnpy-paper" > ~/.bashrc
RUN pip install wget
RUN git clone https://github.com/andreatramacere/jetset-installer.git && \
cd jetset-installer/ && \
python jetset_installer.py 1.2.0rc10
# note jetset uses the latest iminuit while gammapy-0.18.2 uses iminuit<2, downgrade it
RUN conda install iminuit=1.5.4
# back to the workdir with the paper
WORKDIR /root/agnpy_paper
# activate the environment by default
ENV PATH /opt/conda/envs/$CONDA_ENV/bin:$PATH
CMD ["/bin/bash"]