Skip to content

Instantly share code, notes, and snippets.

@jgkawell
Created November 28, 2019 17:21
Show Gist options
  • Save jgkawell/8530d4fb6c814703513f7ed3fdb137bf to your computer and use it in GitHub Desktop.
Save jgkawell/8530d4fb6c814703513f7ed3fdb137bf to your computer and use it in GitHub Desktop.
Dockerfile for ROS development on Windows host or Linux host with Intel graphics
# Build from 16.04 for ROS Kinetic
FROM ubuntu:xenial
# Install misc needed packages
RUN apt -y update && apt -y install git build-essential cmake tmux
# Install ROS (http://wiki.ros.org/kinetic/Installation/Ubuntu)
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list' \
&& apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 \
&& apt -y update && apt -y install ros-kinetic-desktop-full \
&& rosdep init && rosdep update \
&& echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
# Install needed dependencies for building packages
RUN apt -y update && apt -y install python-rosinstall python-rosinstall-generator python-wstool
# Config file for easier tmux usage
COPY ./.tmux.conf ~/.tmux.conf
# Clean up apt
RUN rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment