anchor.diff:    && rm ${APACHE_TOMCAT_PACKAGE}.zip \
     && ln -s ${APACHE_TOMCAT_PACKAGE} apache-tomcat
   
  -# Add MySql scripts
  -COPY ${KNOWAGE_DATABASE_SCRIPT}.zip ./
  -
  -RUN  unzip ${KNOWAGE_DATABASE_SCRIPT}.zip \
  -  && rm ${KNOWAGE_DATABASE_SCRIPT}.zip
  +COPY --from=init /home/mysql/*create* ${KNOWAGE_DIRECTORY}/mysql/
   
   ENV MYSQL_SCRIPT_DIRECTORY ${KNOWAGE_DIRECTORY}/mysql
   
  -# Add Knowage engines
  -#COPY ${KNOWAGE_CORE_ENGINE}.war \
  -#     ${KNOWAGE_BIRTREPORT_ENGINE}.war \
  -#     ${KNOWAGE_COCKPIT_ENGINE}.war \
  -#     ${KNOWAGE_COMMONJ_ENGINE}.war \
  -#     ${KNOWAGE_DATAMINING_ENGINE}.war \
  -#     ${KNOWAGE_GEOREPORT_ENGINE}.war \
  -#     ${KNOWAGE_JASPERREPORT_ENGINE}.war \
  -#     ${KNOWAGE_KPI_ENGINE}.war \
  -#     ${KNOWAGE_META_ENGINE}.war \
  -#     ${KNOWAGE_QBE_ENGINE}.war \
  -#     ${KNOWAGE_SVGVIEWER_ENGINE}.war \
  -#     ${KNOWAGE_TALEND_ENGINE}.war \
  -#     ${KNOWAGE_WHATIF_ENGINE}.war \
  -#     ./
  -#
  -#RUN  unzip ${KNOWAGE_CORE_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_CORE_ENGINE} \
  -#  && rm ${KNOWAGE_CORE_ENGINE}.war \
  -#  && unzip ${KNOWAGE_BIRTREPORT_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_BIRTREPORT_ENGINE} \
  -#  && rm ${KNOWAGE_BIRTREPORT_ENGINE}.war \
  -#  && unzip ${KNOWAGE_COCKPIT_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_COCKPIT_ENGINE} \
  -#  && rm ${KNOWAGE_COCKPIT_ENGINE}.war \
  -#  && unzip ${KNOWAGE_COMMONJ_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_COMMONJ_ENGINE} \
  -#  && rm ${KNOWAGE_COMMONJ_ENGINE}.war \
  -#  && unzip ${KNOWAGE_DATAMINING_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_DATAMINING_ENGINE} \
  -#  && rm ${KNOWAGE_DATAMINING_ENGINE}.war \
  -#  && unzip ${KNOWAGE_GEOREPORT_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_GEOREPORT_ENGINE} \
  -#  && rm ${KNOWAGE_GEOREPORT_ENGINE}.war \
  -#  && unzip ${KNOWAGE_JASPERREPORT_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_JASPERREPORT_ENGINE} \
  -#  && rm ${KNOWAGE_JASPERREPORT_ENGINE}.war \
  -#  && unzip ${KNOWAGE_KPI_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_KPI_ENGINE} \
  -#  && rm ${KNOWAGE_KPI_ENGINE}.war \
  -#  && unzip ${KNOWAGE_META_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_META_ENGINE} \
  -#  && rm ${KNOWAGE_META_ENGINE}.war \
  -#  && unzip ${KNOWAGE_QBE_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_QBE_ENGINE} \
  -#  && rm ${KNOWAGE_QBE_ENGINE}.war \
  -#  && unzip ${KNOWAGE_SVGVIEWER_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_SVGVIEWER_ENGINE} \
  -#  && rm ${KNOWAGE_SVGVIEWER_ENGINE}.war \
  -#  && unzip ${KNOWAGE_TALEND_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_TALEND_ENGINE} \
  -#  && rm ${KNOWAGE_TALEND_ENGINE}.war \
  -#  && unzip ${KNOWAGE_WHATIF_ENGINE}.war -d ${TOMCAT_WEBAPPS}/${KNOWAGE_WHATIF_ENGINE} \
  -#  && rm ${KNOWAGE_WHATIF_ENGINE}.war
  -
  -COPY --from=init /home/expanded/* ${TOMCAT_WEBAPPS}
  +COPY --from=init /home/expanded ${TOMCAT_WEBAPPS}/
   
   # Download Knowage libs and put them into Apache Tomcat lib
   RUN  wget -q -O "${TOMCAT_LIB}/${LIB_COMMONS_LOGGING_NAME}"      "${LIB_COMMONS_LOGGING_URL}"      \
  
positive.code: FROM openjdk:8 AS init
  
  WORKDIR /home
  
  RUN  apt-get update \
    && apt-get install -q --no-install-recommends -y unzip \
    && rm -rf /var/lib/apt/lists/*
  
  # Add Knowage engines
  COPY ${KNOWAGE_CORE_ENGINE}.war \
  
negative.code: 
  WORKDIR /home/expanded
  
  # Expand WARs
  RUN for archive in ../*.war; do unzip -d $( basename ${archive%%.war}) $archive ; done
  
  FROM openjdk:8
  
  # Apache Tomcat
  ARG APACHE_TOMCAT_VERSION="8.5.37"
  