anchor.diff:  MAINTAINER Alexis Couronne
    
   # update system
  -RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
  +#RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
   RUN apt-get update
   RUN apt-get upgrade -y
   RUN DEBIAN_FRONTEND=noninteractive
    
   # install tools
  -RUN apt-get install -y python-software-properties wget pwgen supervisor openssh-server sudo
  +RUN apt-get install -y software-properties-common python-software-properties wget pwgen supervisor openssh-server sudo
   
   # install java
   RUN add-apt-repository ppa:webupd8team/java -y
  
positive.code: RUN apt-get install -y oracle-java7-installer
  
  # install gitbucket
  RUN wget -O /gitbucket.war https://github.com/takezoe/gitbucket/releases/download/1.7/gitbucket.war
   
  ADD start.sh /start.sh
  ADD supervisor/gitbucket.conf /etc/supervisor/conf.d/gitbucket.conf
  
negative.code: RUN mkdir -p /var/run/sshd
  RUN chmod 0755 /var/run/sshd
  
  # Web access port
  EXPOSE 8080
  # Shell SSH port
  EXPOSE 22
  # Git SSH port
  EXPOSE 10000
   
  #CMD ["/usr/bin/java", "-jar", "/gitbucket.war"]
  CMD ["/bin/bash", "/start.sh"]
  