anchor.diff:  # Galaxy - Stable
   #
  -# VERSION       0.1.1
  +# VERSION       0.2.0
   
   FROM ubuntu:14.04
   
   MAINTAINER Björn A. Grüning, bjoern.gruening@gmail.com
   
  -# make sure the package repository is up to date
  -RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
  +# * Make sure the package repository is up to date
  +# * Install all requirements that are recommend by the Galaxy project
  +# * Enable the @natefoo magic
  +# Web server infrastructure matching usegalaxy.org - supervisor, uwsgi, and nginx.
   
  -# Install all requirements that are recommend by the Galaxy project
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y autoconf
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y automake
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y gfortran
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y cmake
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y git-core
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libatlas-base-dev
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libblas-dev
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y liblapack-dev
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y mercurial
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y subversion
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-dev
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y pkg-config
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y openjdk-7-jre-headless
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-setuptools
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-psycopg2
  +ENV DEBIAN_FRONTEND noninteractive
   
  -# Help with Python
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-virtualenv
  +RUN apt-get -qq update && apt-get install --no-install-recommends -y apt-transport-https  software-properties-common && \
  +    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 && \
  +    sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" && \
  +    apt-get update -qq && apt-get upgrade -y && \
  +    add-apt-repository ppa:galaxyproject/nginx && apt-get -qq update && \
  +    apt-get purge -y software-properties-common && \
  +    apt-get install --no-install-recommends -y autoconf automake build-essential gfortran cmake \
  +    git-core libatlas-base-dev libblas-dev liblapack-dev mercurial subversion python-dev pkg-config \
  +    openjdk-7-jre-headless python-setuptools python-psycopg2 postgresql-9.3 sudo samtools python-virtualenv \
  +    nginx-extras uwsgi uwsgi-plugin-python supervisor lxc-docker && \
  +    apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
   
  -# Enable the @natefoo magic... (software-properties-common required for add-apt-repository)
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y software-properties-common
  -RUN DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:galaxyproject/nginx
  -RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
  -
  -# Web server infrastructure matching usegalaxy.org - supervisor, uwsgi, and nginx.
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y nginx-extras uwsgi uwsgi-plugin-python supervisor
  -
  -# Setup Postgres
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y postgresql
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y sudo
  -
  -# samtools is used to handle BAM files inside of Galaxy
  -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y samtools
  +ENV DEBIAN_FRONTEND newt
   
   # Download and update Galaxy to the latest stable release
  -RUN hg clone https://bitbucket.org/galaxy/galaxy-central/
  +RUN hg clone https://bitbucket.org/galaxy/galaxy-central/ && \
  +    cd /galaxy-central/ && \
  +    hg update next-stable && \
  +    rm /galaxy-central/.hg/ -rf
  +
   WORKDIR /galaxy-central
  -RUN hg pull
  -#RUN hg update latest_2014.08.11
  -RUN hg update default
   
   # Configure Galaxy to use the Tool Shed
   RUN cp /galaxy-central/config/galaxy.ini.sample /galaxy-central/config/galaxy.ini
  
positive.code: # Fetching all Galaxy python dependencies
  RUN python scripts/fetch_eggs.py
  
  RUN sed -i 's|#database_connection.*|database_connection = postgresql://galaxy:galaxy@localhost:5432/galaxy|g' /galaxy-central/config/galaxy.ini
  RUN sed -i 's|debug = True|debug = False|g' /galaxy-central/config/galaxy.ini
  
  ENV GALAXY_CONFIG_DATABASE_CONNECTION postgresql://galaxy:galaxy@localhost:5432/galaxy
  ENV GALAXY_CONFIG_TOOL_DEPENDENCY_DIR ./tool_deps
  ENV GALAXY_CONFIG_ADMIN_USERS admin@galaxy.org
  ENV GALAXY_CONFIG_MASTER_API_KEY HSNiugRFvgT574F43jZ7N9F3
  ENV GALAXY_CONFIG_BRAND Galaxy Docker Build foo
  ENV GALAXY_CONFIG_STATIC_ENABLED False
  ENV GALAXY_CONFIG_OVERRIDE_DEBUG False
  
  # Define the default postgresql database path
  # If you want to save your data locally you need to set GALAXY_DOCKER_MODE=HOST
  ENV PG_DATA_DIR_DEFAULT /var/lib/postgresql/9.3/main/
  ENV PG_DATA_DIR_HOST /export/postgresql/9.3/main/
  
  
negative.code: # Expose port 80 to the host
  EXPOSE :80
  
  
  # Mark one folders as imported from the host.
  VOLUME ["/export/"]
  