Skip to content

Instantly share code, notes, and snippets.

@xuanthuong
Last active October 19, 2017 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuanthuong/ad76e7bd5fac71d97e6c92b1261046ce to your computer and use it in GitHub Desktop.
Save xuanthuong/ad76e7bd5fac71d97e6c92b1261046ce to your computer and use it in GitHub Desktop.
Dockerfile for ROS hydro on ubuntu precise from jonbinney
# This file is copied from https://gist.github.com/jonbinney/7365141
FROM ubuntu:precise
# ubuntu precise image doesn't have universe repo
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
RUN apt-get install -y wget
# install ROS
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
RUN wget http://packages.ros.org/ros.key -O - | apt-key add -
RUN apt-get update
RUN apt-get install -y ros-hydro-desktop-full
# install fake vnc desktop
run apt-get install -y x11vnc xvfb
run mkdir /.vnc
# Setup a password
run x11vnc -storepasswd 1234 ~/.vnc/passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment