Skip to content

Commit

Permalink
fix binder v0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Sep 23, 2021
1 parent d4690ad commit 12b9cd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt install -y curl

# 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.17-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.18-environment.yml

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

# download tutorials and datasets
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.17
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.17
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.18
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.18

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

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

0 comments on commit 12b9cd0

Please sign in to comment.