Revision 2bb55bbb760ed18ad4963a0dc91467bf5fc9d806 authored by Jacopo Tani on 07 November 2018, 18:09:08 UTC, committed by GitHub on 07 November 2018, 18:09:08 UTC
2 parent s ea33dfe + d36ce52
Raw File
Dockerfile
# Note: this container will have the name duckietown/rpi-duckiebot-base
FROM duckietown/rpi-ros-kinetic-base:master18


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/
COPY docker/machines.xml /home/software/catkin_ws/src/00-infrastructure/duckietown/machines

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

CMD [ "/bin/bash" ]

ENV DISABLE_CONTRACTS=1

LABEL maintainer="Breandan Considine breandan.considine@umontreal.ca"
back to top