forked from hchengwang/Software-duckietown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (24 loc) · 1.2 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
36
37
38
39
40
41
42
# Note: this container will have the name duckietown/rpi-duckiebot-base
FROM duckietown/rpi-ros-kinetic-base:master19
RUN [ "cross-build-start" ]
COPY requirements.txt /requirements.txt
# otherwise installation of Picamera fails https://github.com/resin-io-projects/resin-rpi-python-picamera/issues/8
ENV READTHEDOCS True
RUN pip install -r /requirements.txt
RUN mkdir /home/software
COPY . /home/software/
ENV ROS_LANG_DISABLE=gennodejs:geneus:genlisp
RUN /bin/bash -c "cd /home/software/ && source /opt/ros/kinetic/setup.bash && catkin_make -j -C catkin_ws/"
RUN echo "source /home/software/docker/env.sh" >> ~/.bashrc
# We make sure that all dependencies are installed
# by trying to import the duckietown_utils package
RUN bash -c "source /home/software/docker/env.sh && python -c 'import duckietown_utils'"
# Most of these will fail, but might be useful to debug some issues.
# Leave it here to run it manually.
# RUN bash -c "source /home/software/docker/env.sh && /home/software/what-the-duck"
RUN [ "cross-build-end" ]
WORKDIR /home/software
ENTRYPOINT ["/home/software/docker/entrypoint.sh"]
CMD [ "/bin/bash" ]
ENV DISABLE_CONTRACTS=1
LABEL maintainer="Breandan Considine [email protected]"