-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.4 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
# Set the base image
FROM ros:kinetic-ros-core
MAINTAINER guillaume beuzeboc <[email protected]>
RUN apt-get update
RUN apt-get install -y wget \
g++ \
cmake \
unzip \
libgflags-dev
RUN apt-get install -y ros-kinetic-hardware-interface \
ros-kinetic-controller-manager \
ros-kinetic-control-msgs \
ros-kinetic-actionlib \
ros-kinetic-urdf \
ros-kinetic-joint-limits-interface \
ros-kinetic-transmission-interface \
ros-kinetic-control-toolbox \
ros-kinetic-angles \
ros-kinetic-rosparam-shortcuts
# install pigpio
RUN wget -P /tmp/ abyz.co.uk/rpi/pigpio/pigpio.zip
RUN cd /tmp; unzip pigpio.zip
RUN cd /tmp/PIGPIO; make; make install
#depends ws
RUN mkdir -p /root/ros_depends/src
RUN git clone --branch 0.4.1 https://github.com/Guillaumebeuzeboc/ros_control_boilerplate.git /root/ros_depends/src/ros_control_boilerplate
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash; cd /root/ros_depends; catkin_make install -j1 -DCMAKE_BUILD_TYPE=Release"
#install ws
RUN mkdir -p /root/ws/src
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash; cd /root/ws; catkin_make"
# Copy and run code
COPY src/ /root/ws/src