Skip to content

Commit

Permalink
Modified Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
w821881341 committed Jul 1, 2021
1 parent bbfb025 commit ee8e47b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Dockerfile.jupyter
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN sudo pip3 install matplotlib
# install
COPY . .
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
ENV OPEN_SPIEL_BUILD_WITH_ACPC="ON"
ENV OPEN_SPIEL_BUILD_WITH_HANABI="ON"
RUN ./install.sh
RUN pip3 install --upgrade setuptools testresources
RUN pip3 install --upgrade -r requirements.txt
Expand All @@ -33,11 +35,18 @@ RUN make -j12
ENV PYTHONPATH=${PYTHONPATH}:/repo
ENV PYTHONPATH=${PYTHONPATH}:/repo/build/python
# ctest can be disabled for faster builds when tests are not required
RUN ctest -j12
WORKDIR /repo/open_spiel
# RUN ctest -j12
WORKDIR /

# Jupyterlab Environment
FROM base as jupyterlab
RUN pip install jupyter -U && pip install jupyterlab
# RUN pip3 install jupyter -U && pip install jupyterlab
RUN apt-get -y install \
nodejs \
npm \
wget
RUN bash -c '/bin/echo -e "\ny\n\n" | bash -c "$(wget -q -O - https://linux.kite.com/dls/linux/current)"'
RUN pip3 install --upgrade -r /repo/rain_requirements.txt

EXPOSE 8888
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
# ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
21 changes: 21 additions & 0 deletions rain_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# tensorflow
# tensorboard
# torch
# scipy
jupyter
jupyterlab == 3.0.14
# For using kite
jupyterlab-kite>=2.0.2
# For using git
jupyterlab-git
# For using debugger
xeus-python
# For formatting the code
jupyterlab_code_formatter
black
isort
# For using tensorboard in jupyterlab
# tensorflow==2,2,0
tensorboard==2.2.0
git+https://github.com/cliffwoolley/jupyter_tensorboard.git
git+https://github.com/chaoleili/jupyterlab_tensorboard.git

0 comments on commit ee8e47b

Please sign in to comment.