Skip to content

Instantly share code, notes, and snippets.

@ammarnajjar
Created November 25, 2015 10:39
Show Gist options
  • Save ammarnajjar/8fcb8fb7e3a07c644a13 to your computer and use it in GitHub Desktop.
Save ammarnajjar/8fcb8fb7e3a07c644a13 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
DIR="indigo_full"
mkdir $DIR
cd $DIR
echo "#
# ROS Indigo with gazebo Dockerfile
#
FROM ubuntu:14.04
MAINTAINER \"Ammar Najjar <najjarammar@gmail.com>\"
LABEL Description=\"This image is used to make ROS Indigo based projects build faster using build tools\" Version=\"1.0\"
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV DISPLAY=\"$DISPLAY\"
ENV TERM=\"xterm-256color\"
ENV QT_X11_NO_MITSHM=1
RUN sh -c 'echo \"deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main\" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install git git-core vim tmux tree wget curl -y
# RUN apt-get install libgl1-mesa-dev-lts-utopic -y
# Desktop-Full Install: (Recommended) : ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception
RUN apt-get install ros-indigo-desktop-full -y
RUN apt-get install python-rosinstall -y
# Caching additional packages which are often used
RUN apt-get install ros-indigo-moveit-* -y
RUN apt-get install ros-indigo-sr-* -y
RUN apt-get install python-rosinstall
RUN apt-get install libmuparser-dev -y
RUN rosdep init
RUN rosdep update
#
# Gazebo
#
# # setup keys
# RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
#
# # setup sources.list
# RUN echo \"deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main\" > /etc/apt/sources.list.d/gazebo-latest.list
#
# # install gazebo packages
# RUN apt-get update && apt-get install -q -y \
# libgazebo5 gazebo5-common gazebo5=5.1.0* \
# && rm -rf /var/lib/apt/lists/*
# setup environment
EXPOSE 11345
# setup entrypoint
COPY ./gzserver_entrypoint.sh /
ENTRYPOINT [\"/gzserver_entrypoint.sh\"]
CMD [\"gzserver\"]" > Dockerfile
docker build --tag najjarammar/indigo_full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment