anchor.diff:  
   WORKDIR /home/expanded
   
  -RUN unzip ../*.war
  +# Expand WARs
  +RUN for archive in ../*.war; do unzip -d $( basename ${archive%%.war}) $archive ; done
   
   FROM openjdk:8
  -
  -ARG KNOWAGE_CORE_ENGINE="knowage"
  -ARG KNOWAGE_BIRTREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}birtreportengine"
  -ARG KNOWAGE_COCKPIT_ENGINE="${KNOWAGE_CORE_ENGINE}cockpitengine"
  -ARG KNOWAGE_COMMONJ_ENGINE="${KNOWAGE_CORE_ENGINE}commonjengine"
  -ARG KNOWAGE_DATAMINING_ENGINE="${KNOWAGE_CORE_ENGINE}dataminingengine"
  -ARG KNOWAGE_GEOREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}georeportengine"
  -ARG KNOWAGE_JASPERREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}jasperreportengine"
  -ARG KNOWAGE_KPI_ENGINE="${KNOWAGE_CORE_ENGINE}kpiengine"
  -ARG KNOWAGE_META_ENGINE="${KNOWAGE_CORE_ENGINE}meta"
  -ARG KNOWAGE_QBE_ENGINE="${KNOWAGE_CORE_ENGINE}qbeengine"
  -ARG KNOWAGE_SVGVIEWER_ENGINE="${KNOWAGE_CORE_ENGINE}svgviewerengine"
  -ARG KNOWAGE_TALEND_ENGINE="${KNOWAGE_CORE_ENGINE}talendengine"
  -ARG KNOWAGE_WHATIF_ENGINE="${KNOWAGE_CORE_ENGINE}whatifengine"
  -ARG KNOWAGE_DATABASE_SCRIPT="${KNOWAGE_CORE_ENGINE}-database-scripts-mysql"
   
   # Apache Tomcat
   ARG APACHE_TOMCAT_VERSION="8.5.37"
  
positive.code:   && 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
  
  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}
  
  # Download Knowage libs and put them into Apache Tomcat lib
  RUN  wget -q -O "${TOMCAT_LIB}/${LIB_COMMONS_LOGGING_NAME}"      "${LIB_COMMONS_LOGGING_URL}"      \
  
negative.code: FROM openjdk:8 AS init
  
  ARG KNOWAGE_CORE_ENGINE="knowage"
  ARG KNOWAGE_BIRTREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}birtreportengine"
  ARG KNOWAGE_COCKPIT_ENGINE="${KNOWAGE_CORE_ENGINE}cockpitengine"
  ARG KNOWAGE_COMMONJ_ENGINE="${KNOWAGE_CORE_ENGINE}commonjengine"
  ARG KNOWAGE_DATAMINING_ENGINE="${KNOWAGE_CORE_ENGINE}dataminingengine"
  ARG KNOWAGE_GEOREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}georeportengine"
  ARG KNOWAGE_JASPERREPORT_ENGINE="${KNOWAGE_CORE_ENGINE}jasperreportengine"
  ARG KNOWAGE_KPI_ENGINE="${KNOWAGE_CORE_ENGINE}kpiengine"
  ARG KNOWAGE_META_ENGINE="${KNOWAGE_CORE_ENGINE}meta"
  ARG KNOWAGE_QBE_ENGINE="${KNOWAGE_CORE_ENGINE}qbeengine"
  ARG KNOWAGE_SVGVIEWER_ENGINE="${KNOWAGE_CORE_ENGINE}svgviewerengine"
  ARG KNOWAGE_TALEND_ENGINE="${KNOWAGE_CORE_ENGINE}talendengine"
  ARG KNOWAGE_WHATIF_ENGINE="${KNOWAGE_CORE_ENGINE}whatifengine"
  ARG KNOWAGE_DATABASE_SCRIPT="${KNOWAGE_CORE_ENGINE}-database-scripts-mysql"
  
  WORKDIR /home
  
  # Install dependencies
  RUN  apt-get update \
    && apt-get install -q --no-install-recommends -y unzip \
    && rm -rf /var/lib/apt/lists/*
  
  # Add MySql scripts
  COPY ${KNOWAGE_DATABASE_SCRIPT}.zip ./
  
  # Extract database script
  RUN  unzip ${KNOWAGE_DATABASE_SCRIPT}.zip \
    && rm ${KNOWAGE_DATABASE_SCRIPT}.zip
  
  # Add Knowage engines
  COPY ${KNOWAGE_CORE_ENGINE}.war \
  