anchor.diff:  VOLUME [ "/sys/fs/cgroup", "/var/log/journal" ]
   
   # au demarage lancer du conteneur, il faut lancer /usr/sbin/init (systemd)
  -CMD ["/usr/sbin/init"]+CMD ["/usr/sbin/init"]
  
positive.code: FROM centos:centos7.2.1511
  
  #-----------------------------------------------------------------------------
  # Cohorte Base image.
  #
  # Contains: 
  # - Centos7 
  # - Oracle JVM 8 
  # - Python 3.4
  #
  # Installed tools:
  # - systemd (in place of fakesystemd) see https://hub.docker.com/_/centos/
  # - vim
  # - wget
  # - tar
  # - nc
  # - python 3.4
  #
  # UPDATES:
  # - MOD_BD_20161013 moving from centos7.1.x to centos7.2.15.11 
  #      (needs systemd v232 - installed 219)
  #-----------------------------------------------------------------------------
  
  # meta-data
  
negative.code: 
  # force rebuilind all this Dockerfile by changing the date
  ENV REFRESHED_AT 20161013_1730
  ENV JAVA_VERSION 8u151
  ENV JAVA_LONG_VERSION 8u151-b12
  ENV JAVA_HOME /opt/java
  ENV PATH $JAVA_HOME/bin:$PATH
  
  # informer systemd qu'il s'execute sur un conteneur docker
  ENV container docker
  
  
  # installation du systemd au lieu du fakesystemd
  # ceci est necessaire pour pouvoir lancer mysql et openldap comme un service OS
  # avec les commandes "service" et "systemctl".
  RUN apt-get update
  
  
  RUN apt-get install -y software-properties-common python-software-properties
  RUN add-apt-repository -y ppa:jonathonf/python-3.6
  
  RUN apt-get update
  
  # installer d'autres outils
  RUN apt-get  install -y vim wget tar netcat-openbsd
  #RUN apt-get  install -y epel-release
  RUN apt-get  install -y python3.4  python
  # to have systemctl command
  RUN apt-get install -y systemd
  
  # Installer Java 8 (Oracle)
  # inspired from: https://hub.docker.com/r/cooniur/java/
  RUN mkdir -p $JAVA_HOME
  COPY ./jdk/* /opt/java/
  RUN chmod +x /opt/java/bin/*
     
  
  # Test de java
  RUN java -version
  