anchor.diff:  RUN apt-get -y upgrade
   
   # Auto accept oracle jdk license
  -RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
  -RUN apt-get install -y oracle-java8-installer ca-certificates libxext-dev libxrender-dev libxtst-dev mysql-client vim telnet dnsutils wget curl unzip git
  +RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
  +RUN apt-get install -yq oracle-java7-installer oracle-java7-set-default ca-certificates libxext-dev libxrender-dev libxtst-dev mysql-client vim telnet dnsutils wget curl unzip git
   RUN update-alternatives --display java
   
   # Add JAVA_HOME to path.
  -ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
  +ENV JAVA_HOME /usr/lib/jvm/java-7-oracle
   
   # Install Grails
   WORKDIR /
  
positive.code:     rm -rf /tmp/*
  
  # Clean up APT when done.
  RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  # Add start script
  ADD run.sh /usr/local/bin/netbeans
  
negative.code: FROM phusion/baseimage:latest
  
  MAINTAINER Yang Leijun <yang.leijun@gmail.com>
  
  # Set customizable env vars defaults.
  ENV GRAILS_VERSION 2.4.4
  ENV DEBIAN_FRONTEND noninteractive
  
  # Download Install Dependencies
  RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
  