Skip to content

Commit

Permalink
update docker setup - fixes for ARM M1 chip
Browse files Browse the repository at this point in the history
  • Loading branch information
TillBeemelmanns committed Oct 20, 2023
1 parent 2c8c485 commit 8a30735
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
43 changes: 23 additions & 20 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jupyter/minimal-notebook:lab-3.1.4
FROM jupyter/minimal-notebook:lab-3.1.18

USER root

Expand Down Expand Up @@ -35,26 +35,36 @@ USER ${NB_USER}
RUN pip install \
'jupyterlab_iframe==0.4.0' \
'git+https://github.com/stv0g/nbgitpuller@f735265f7b2a429a17a8fab70cfd3557f060640d' \
'rwth-nb==0.1.8'
'rwth-nb==0.1.8' \
'tqdm'

RUN conda install --name base --no-update-deps \
'conda==4.10.3' && \
conda install --name base --quiet --yes --no-update-deps \
'jupyterlab-git==0.32.1' \
'ujson==4.0.2' \
'ipywidgets==7.6.3' \
'ipympl==0.7.0' \
'ipympl==0.9.3' \
'matplotlib-base==3.4.3' && \
conda clean --all


RUN conda install --name base --quiet --yes --no-update-deps \
'jupyterlab_widgets' \
'jupyterlab-drawio==0.9.0' \
'jupyterlab_iframe==0.4.0' \
'jupyterlab_latex=3.0.0' && \
'jupyterlab_latex=3.0.0' \
'jupyter_core==4.11.2' && \
conda clean --all

RUN conda install --name base --quiet --yes --no-update-deps --channel conda-forge \
'jupyterlab_widgets' \
'jupyterhub=1.1.0' \
'ipywidgets' && \
conda clean --all

# Fix traitlets pip package
RUN pip uninstall -y traitlets
RUN pip install traitlets==5.9.0

# Workaround LaTex
RUN git clone https://github.com/joequant/jupyterlab-latex /tmp/jupyterlab-latex && cd /tmp/jupyterlab-latex && git checkout cbb66825786ecf11a35fd92df797f8ccee719ad4 && pip install -ve .
RUN jupyter lab build
Expand Down Expand Up @@ -152,9 +162,9 @@ USER jovyan
ARG TARGETPLATFORM

RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
pip install tensorflow-gpu==2.10.0 ; \
pip install tensorflow==2.10.0 ; \
elif [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
python -m pip install tensorflow-macos ; \
pip install tensorflow==2.10.0 ; \
fi

# Install packages via requirements.txt
Expand All @@ -167,25 +177,18 @@ RUN jupyter labextension install jupyterlab-plotly
# Install PointPillars Package
RUN pip install git+https://github.com/ika-rwth-aachen/PointPillars.git

# Install TensorBoard Widget
RUN pip install git+https://github.com/cliffwoolley/jupyter_tensorboard.git
RUN pip install git+https://github.com/chaoleili/jupyterlab_tensorboard.git
RUN jupyter tensorboard enable --user

# Install Jupyros
RUN pip install service_identity --force --upgrade
RUN pip install jupyter bqplot pyyaml ipywidgets ipycanvas
RUN pip install jupyros
RUN conda install jupyter bqplot pyyaml ipywidgets ipycanvas
RUN pip install jupyros==0.7.0a0
RUN pip install roslibpy
RUN pip install pyrosbag

# install the zethus and urdf libraries
RUN pip install pyOpenSSL --upgrade
RUN pip install pymongo

RUN pip install jupyterlab-urdf
RUN pip install jupyterlab-urdf==0.2.1
RUN pip install jupyterlab-zethus

RUN jupyter nbextension install --py --symlink --sys-prefix jupyros
RUN jupyter nbextension enable --py --sys-prefix jupyros
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
ENV ROS_HOSTNAME=localhost
ENV ROS_MASTER_URI=http://localhost:11311
5 changes: 2 additions & 3 deletions docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
tensorflow-addons
tensorflow-datasets
tensorflow-datasets==4.9.2
matplotlib
jupyter
scikit-learn
tensorflow_probability==0.13.0
tensorflow_probability==0.18.0
beeprint
cmake
opencv-python
Expand Down

0 comments on commit 8a30735

Please sign in to comment.