-
Notifications
You must be signed in to change notification settings - Fork 2
/
DockerfileNB
50 lines (35 loc) · 1.71 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
44
45
46
47
48
49
# 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 python3-tk\
&& 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==0.2.0
RUN jupyter nbextension enable --py --sys-prefix jupyros
RUN mkdir duckietown
COPY setup/requirements.txt duckietown
COPY setup/initial.sh duckietown
COPY setup/run_display.bash duckietown
RUN chmod u+x duckietown/run_display.bash
RUN cd duckietown && ./initial.sh
RUN echo 'source catkin_ws/devel/setup.bash' >> ~/.bashrc
RUN echo 'echo if you got a message about "catkin_ws/devel/setup.bash does not exist" then you need to build the catkin_ws with "catkin build --workspace catkin_ws" ' >> ~/.bashrc
RUN echo 'echo don't forget to start the car_interface if you haven't already with ./launch_car_interface.sh ' >> ~/.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
COPY setup/launch_car_interface.sh duckietown
WORKDIR /duckietown
CMD rm -f /tmp/.X99-lock && ./run_display.bash && jupyter-notebook --allow-root --ip="*" --no-browser