Skip to content

Commit

Permalink
Add Dockerfile for v0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed May 28, 2019
1 parent bf25794 commit 6aeaef9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Expand Up @@ -10,7 +10,7 @@ RUN pip install --upgrade pip

# install dependencies - including the stable version of Gammapy
COPY binder.py tmp/
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.9-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.10-environment.yml

WORKDIR tmp/
RUN conda update conda
Expand All @@ -28,18 +28,16 @@ RUN adduser --disabled-password \
${NB_USER}

# download tutorials and datasets
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.9
RUN git clone https://github.com/gammapy/gammapy-extra.git ${HOME}/gammapy-extra
WORKDIR ${HOME}/gammapy-extra
RUN git checkout cd6bc642d801b3d85f8a0c863caa56be8bf44774
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.10
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.10

# setting ownerships
USER root
RUN chown -R gammapy:gammapy ${HOME}

# start JupyterLab server in tutorials dir
USER ${NB_USER}
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.9
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.10

# env vars used in tutorials
ENV GAMMAPY_DATA ${HOME}/gammapy-extra/datasets
ENV GAMMAPY_DATA ${HOME}/gammapy-datasets

0 comments on commit 6aeaef9

Please sign in to comment.