Dockerfile 975 B

123456789101112131415161718192021222324252627282930313233
  1. FROM osrf/ros:kinetic-desktop
  2. RUN apt-get update \
  3. && apt-get install -y \
  4. wget \
  5. lsb-release \
  6. sudo \
  7. mesa-utils \
  8. && apt-get clean
  9. # Get gazebo binaries
  10. RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list \
  11. && wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - \
  12. && apt-get update \
  13. && apt-get install -y \
  14. gazebo9 \
  15. ros-kinetic-gazebo9-ros-pkgs \
  16. ros-kinetic-fake-localization \
  17. ros-kinetic-joy \
  18. && apt-get clean
  19. RUN mkdir -p /tmp/workspace/src
  20. COPY prius_description /tmp/workspace/src/prius_description
  21. COPY prius_msgs /tmp/workspace/src/prius_msgs
  22. COPY car_demo /tmp/workspace/src/car_demo
  23. RUN /bin/bash -c 'cd /tmp/workspace \
  24. && source /opt/ros/kinetic/setup.bash \
  25. && catkin_make'
  26. CMD ["/bin/bash", "-c", "source /opt/ros/kinetic/setup.bash && source /tmp/workspace/devel/setup.bash && roslaunch car_demo demo.launch"]