Skip to content

Commit

Permalink
Add Dockerfile for v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed May 28, 2019
1 parent 3a9aea3 commit bf25794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.8-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.9-environment.yml

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

# download tutorials and datasets
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.8
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 dfc299568b630af7d327a466123364819573cd9e
RUN git checkout cd6bc642d801b3d85f8a0c863caa56be8bf44774

# 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.8
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.9

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

0 comments on commit bf25794

Please sign in to comment.