anchor.diff:  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 \
  -     ./
  +#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
   
  -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}"      \
  
positive.code: FROM openjdk:8
  
  ARG KNOWAGE_CORE_ENGINE="knowage"
  
negative.code: # Expose common tomcat port
  EXPOSE 8080
  
  HEALTHCHECK --start-period=120s                                          \
              --interval=10s                                               \
              --timeout=5s                                                 \
              --retries=5                                                  \
              CMD wget -q --spider http://127.0.0.1:8080/ || exit 1
  
  ENTRYPOINT ["./entrypoint.sh"]
  
  CMD ["./apache-tomcat/bin/startup.sh"]
  