anchor.diff:  
   MAINTAINER Utsav Handa <handautsav@gmail.com>
   
  +
   ###########################
   # Additional Repositories
   ###########################
  
positive.code: RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  Add etc/yum.repos.d/* /etc/yum.repos.d/
  
  #################
  # Base Packages
  #################
  RUN yum -y install \
      nginx \
      MariaDB-server MariaDB-client \
      redis \
  
negative.code: RUN cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
  RUN echo -e "mysqld_safe & \n mysqladmin --silent --wait=30 ping || exit 1 \n mysql -e 'GRANT ALL PRIVILEGES ON *.* TO \"root\"@\"%\" WITH GRANT OPTION;'" >> /tmp/mariadb-config
  RUN bash /tmp/mariadb-config && rm -f /tmp/mariadb-config
  RUN export JAVA_HOME="/usr/lib/jvm/jre-1.8.0/"
  ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0/
  
  
  ###########
  # Volumes
  ###########
  VOLUME ["/var/lib/mysql", "/var/www/html", "/usr/share/elasticsearch/data", "/etc/supervisor/conf.d/"]
  
  
  #########
  # Ports
  #########
  EXPOSE 80 443 3306 6379 11300 9200 9300
  
  
  ##############
  # Entrypoint
  ##############
  