-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 1.04 KB
/
Dockerfile
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
# This is an auto generated Dockerfile for ros:desktop-full
# generated from docker_images/create_ros_image.Dockerfile.em
FROM osrf/ros:lunar-desktop-xenial
#RUN apt-get u# Install dependencies
RUN apt-get update && apt-get install -y \
software-properties-common
RUN add-apt-repository universe
RUN apt-get update && apt-get install -y \
apache2 \
curl \
git \
python2.7 \
python-pip
RUN pip install --upgrade pip
# install ros packages
RUN apt-get update && apt-get install -y \
ros-lunar-desktop-full=1.3.2-0* \
&& rm -rf /var/lib/apt/lists/*
# install jupyter and configure
RUN pip2 install jupyter
RUN pip2 install matplotlib
RUN export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
RUN mkdir notebooks
RUN jupyter notebook --generate-config --allow-root
RUN echo "c.NotebookApp.password = u'sha1:6a3f528eec40:6e896b6e4828f525a6e20e5411cd1c8075d68619'" >> /root/.jupyter/jupyter_notebook_config.py
EXPOSE 8888
CMD ["jupyter", "notebook", "--allow-root", "--notebook-dir=/notebooks", "--ip=0.0.0.0", "--port=8888", "--no-browser"]