forked from RobInLabUJI/ROS-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (48 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
63 lines (48 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ros:kinetic-ros-base
# install ros tutorials packages
RUN apt-get update && apt-get install -y \
ros-kinetic-ros-tutorials \
ros-kinetic-common-tutorials \
python-pip \
xvfb=2:1.18.4-0ubuntu0.7 \
x11-apps=7.7+5+nmu1ubuntu1 \
netpbm=2:10.0-15.3\
&& rm -rf /var/lib/apt/lists/
# npm is needed by Jupyter ROS
RUN apt-get update && apt-get install -y npm wget
RUN npm install -g n
RUN n stable
RUN pip install --upgrade pip==18.0
# RUN pip install \
# notebook==5.6.0 \
# ipywidgets==7.3.0 \
# ipykernel==4.8.2 \
# matplotlib==2.2.2 \
# jupyterlab==0.33.4
RUN pip install notebook ipywidgets ipykernel matplotlib jupyterlab
# Enable extensions in Jupyter Notebooks
RUN jupyter nbextension enable --py widgetsnbextension
# Install Jupyter-ROS dependecies
RUN pip install bqplot pyyaml
# Install Jupyter-ROS extension
# https://github.com/RoboStack/jupyter-ros
# Install the extension for jupyter
RUN pip install jupyros
#RUN jupyter nbextension enable --py labextension
# To install the extension for jupyterlab, you also need to execute the following:
RUN jupyter labextension install jupyter-ros
# Build jupyterlab
RUN jupyter lab build
ENV NB_USER gopigo
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
# Make sure the contents of our repo are in ${HOME}
COPY . ${HOME}
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
WORKDIR ${HOME}
CMD ["jupyter", "lab", "--no-browser", "--ip", "0.0.0.0","--allow-root"]