forked from duckietown-udem/udem-fall19-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileNB
43 lines (32 loc) · 1.33 KB
/
DockerfileNB
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
# FROM duckietown/aido2-base-python3:z2
FROM osrf/ros:melodic-desktop-full-bionic
RUN apt-get update \
&& apt-get install -y python3-pip python-catkin-tools build-essential xvfb python-frozendict ffmpeg python-ruamel.yaml \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install pip -U \
&& python3 -m pip install jupyter numpy scipy pandas sklearn matplotlib \
&& rm -r /root/.cache/pip
RUN apt-get install python3-pip
RUN pip3 install rospkg catkin_pkg pyyaml jupyros
RUN jupyter nbextension enable --py --sys-prefix jupyros
RUN mkdir duckietown
COPY setup/requirements.txt duckietown
COPY setup/initial.sh duckietown
RUN cd duckietown && ./initial.sh
COPY setup/run_display.bash duckietown
RUN chmod u+x duckietown/run_display.bash
RUN echo 'source custom_ws/devel/setup.bash' >> ~/.bashrc
ENV ROS_PYTHON_VERSION 3
ENV SHELL /bin/bash
ENV DISPLAY :99
ENV DUCKIEFLEET_ROOT /data/config
RUN mkdir -p /data/config
RUN git clone https://github.com/duckietown-udem/config /data/config
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
COPY setup/requirementspy2.txt duckietown
RUN python -m pip install -r duckietown/requirementspy2.txt
WORKDIR /duckietown
CMD ./run_display.bash && jupyter-notebook --allow-root --ip="*" --no-browser