forked from selcukercan/duckiebot-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (36 loc) · 1.27 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
43
44
45
46
47
48
49
50
51
52
FROM arm32v7/ros:kinetic-ros-base-xenial
ENV INITSYSTEM off
ENV QEMU_EXECVE 1
# setup environment
ENV TERM "xterm"
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV ROS_DISTRO kinetic
COPY ./qemu/bin/ /usr/bin/
RUN [ "cross-build-start" ]
# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 421C365BD9FF1F717815A3895523BAEEB01FA116
# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list
RUN apt-get update && apt-get install -y \
ros-kinetic-tf-conversions \
ros-kinetic-joy \
python-pip \
python-smbus \
python-serial
# RPi libs
ADD qemu/vc.tgz /opt/
COPY qemu/00-vmcs.conf /etc/ld.so.conf.d
RUN ldconfig
COPY requirements.txt /requirements.txt
ENV READTHEDOCS True
RUN pip install -r /requirements.txt
RUN mkdir /home/duckiebot-interface/
COPY . /home/duckiebot-interface
ENV ROS_LANG_DISABLE=gennodejs:geneus:genlisp
RUN /bin/bash -c "cd /home/duckiebot-interface/ && source /opt/ros/kinetic/setup.bash && catkin_make -j -C catkin_ws/"
RUN echo "source /home/duckiebot-interface/docker_setup.sh" >> ~/.bashrc
RUN bash -c "source /home/duckiebot-interface/docker_setup.sh"
RUN [ "cross-build-end" ]
WORKDIR /home/duckiebot-interface
CMD [ "./run_all_drivers.sh" ]