Skip to content

Instantly share code, notes, and snippets.

@BrianAdams
Last active May 2, 2016 15:39
Show Gist options
  • Select an option

  • Save BrianAdams/649d8bbfcf7bc676a15b to your computer and use it in GitHub Desktop.

Select an option

Save BrianAdams/649d8bbfcf7bc676a15b to your computer and use it in GitHub Desktop.
This docker file will setup ros with rosbridge and the openrov plugin
FROM quantumobject/docker-ros-base
MAINTAINER Brian Adams "brian@openrov.com"
RUN apt-get update && apt-get install -y \
ros-jade-rosbridge-suite \
gstreamer0.10 \
libgstreamer-plugins-base0.10-dev \
ros-jade-image-transport \
ros-jade-camera-calibration-parsers \
ros-jade-camera-info-manager \
git
ENV ROS_ROOT=/opt/ros/jade/share/ros
ENV ROS_PACKAGE_PATH=/root/catkin_ws/src:/opt/ros/jade/share:/opt/ros/jade/stacks
ENV ROS_MASTER_URI=http://localhost:11311
ENV LD_LIBRARY_PATH=/root/catkin_ws/devel/lib:/root/catkin_ws/devel/lib/x86_64-linux-gnu:/opt/ros/jade/lib/x86_64-linux-gnu:/opt/ros/jade/lib
ENV CATKIN_TEST_RESULTS_DIR=/root/catkin_ws/build/test_results
ENV CPATH=/root/catkin_ws/devel/include:/opt/ros/jade/include
ENV ROS_TEST_RESULTS_DIR=/root/catkin_ws/build/test_results
ENV PATH=/root/catkin_ws/devel/bin:/opt/ros/jade/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV ROSLISP_PACKAGE_DIRECTORIES=/root/catkin_ws/devel/share/common-lisp
ENV ROS_DISTRO=jade
ENV PYTHONPATH=/root/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/jade/lib/python2.7/dist-packages
ENV PKG_CONFIG_PATH=/root/catkin_ws/devel/lib/pkgconfig:/root/catkin_ws/devel/lib/x86_64-linux-gnu/pkgconfig:/opt/ros/jade/lib/x86_64-linux-gnu/pkgconfig:/opt/ros/jade/lib/pkgconfig
ENV CMAKE_PREFIX_PATH=/root/catkin_ws/devel:/opt/ros/jade
ENV ROS_ETC_DIR=/opt/ros/jade/etc/ros
WORKDIR /root/catkin_ws/src
RUN git clone https://github.com/ros-drivers/gscam
WORKDIR /root/catkin_ws
RUN /opt/ros/jade/bin/catkin_make
WORKDIR /root/catkin_ws/src
RUN git clone https://github.com/DCLane/OpenROV-ros.git openrov
WORKDIR /root/catkin_ws
RUN /opt/ros/jade/bin/catkin_make
EXPOSE 9090
ENTRYPOINT ["/opt/ros/jade/bin/roslaunch", "openrov", "start.launch"]
@BrianAdams

Copy link
Copy Markdown
Author

Updated to reference Jade instead of Indigo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment