anchor.diff:  # Download and compile Gazebo
   RUN hg clone https://bitbucket.org/osrf/gazebo /home/gazebo/ws/gazebo
   # Use branch visualization on demand
  -RUN cd /home/gazebo/ws/gazebo; hg up -r ${gazebo_commit}; mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TESTS_COMPILATION=FALSE ../; make -j4; make install
  +RUN cd /home/gazebo/ws/gazebo; hg up -r ${gazebo_commit}; mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TESTS_COMPILATION=FALSE ../; make -j1; make install
   
   RUN mkdir -p /home/gazebo/ws/src
   
   #Install Manifold dependencies
   RUN apt-get update && apt-get install -y cmake pkg-config python ruby-ronn
   
  -USER gazebo
  -
   # Select Manifold commit
  -ENV manifold_commit 5a095e0
  +ARG manifold_commit=5a095e0
   
   #Clone and install Manifold
   RUN hg clone https://bitbucket.org/osrf/manifold /tmp/manifold
  -RUN cd /tmp/manifold; hg up -r ${manifold_commit}; mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=/home/gazebo/manifold ../; cmake -DCMAKE_BUILD_TYPE=Debug ../; make -j4; sudo make install
  +RUN cd /tmp/manifold; hg up -r ${manifold_commit}; mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=/home/gazebo/manifold ../; cmake -DCMAKE_BUILD_TYPE=Debug ../; make -j1; make install
  +
  +USER gazebo
   
   WORKDIR /home/gazebo/ws
   CMD ["tmux"]
  
positive.code: # Create workspace directory
  RUN mkdir -p /home/gazebo/ws/
  
  # Download and compile Ignition package
  RUN hg clone https://bitbucket.org/ignitionrobotics/ign-math /home/gazebo/ws/ign-math
  RUN cd /home/gazebo/ws/ign-math; mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr; make -j4; make install
  
negative.code: FROM ubuntu:xenial
  MAINTAINER Javier Choclin jchoclin@ekumenlabs.com
  
  # setup environment
  ENV DEBIAN_FRONTEND noninteractive
  RUN locale-gen en_US.UTF-8
  ENV LANG en_US.UTF-8
  
  