forked from RobInLabUJI/ROS-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.prev
62 lines (51 loc) · 1.54 KB
/
Dockerfile.prev
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
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/
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
# Install Jupyter
RUN pip install \
six==1.11.0 \
numpy==1.12.0
RUN pip install jupyter bqplot pyyaml ipywidgets
# Enable extensions in Jupyter Notebooks
# RUN jupyter nbextension enable --py --sys-prefix ipywidgets
RUN jupyter nbextension enable --py widgetsnbextension
# Install Jupyter-ROS extension
# https://github.com/RoboStack/jupyter-ros
RUN apt-get update && apt-get install -y npm wget
RUN npm install -g n
RUN n stable
RUN pip install jupyros
RUN jupyter nbextension enable --py --sys-prefix jupyros
# If you prefer to use the newer jupyterlab
#RUN pip install jupyterlab
# Install the extension for jupyterlab
#RUN jupyter labextension install jupyter-ros
#RUN jupyter nbextension enable --py labextension
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}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
WORKDIR ${HOME}
CMD ["jupyter", "lab", "--no-browser", "--ip", "0.0.0.0"]