-
Notifications
You must be signed in to change notification settings - Fork 274
/
Dockerfile
33 lines (26 loc) · 975 Bytes
/
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
FROM osrf/ros:kinetic-desktop
RUN apt-get update \
&& apt-get install -y \
wget \
lsb-release \
sudo \
mesa-utils \
&& apt-get clean
# Get gazebo binaries
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list \
&& wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - \
&& apt-get update \
&& apt-get install -y \
gazebo9 \
ros-kinetic-gazebo9-ros-pkgs \
ros-kinetic-fake-localization \
ros-kinetic-joy \
&& apt-get clean
RUN mkdir -p /tmp/workspace/src
COPY prius_description /tmp/workspace/src/prius_description
COPY prius_msgs /tmp/workspace/src/prius_msgs
COPY car_demo /tmp/workspace/src/car_demo
RUN /bin/bash -c 'cd /tmp/workspace \
&& source /opt/ros/kinetic/setup.bash \
&& catkin_make'
CMD ["/bin/bash", "-c", "source /opt/ros/kinetic/setup.bash && source /tmp/workspace/devel/setup.bash && roslaunch car_demo demo.launch"]