Original HEALTHCHECK from the Karaf's Dockerfile was moved to swarm config because of some odd behaviour (container never was healthy when multi-stage build was applied)
ARG HEALTHCHECK_PHRASE="204 bundles in total - all 204 bundles active"
HEALTHCHECK --interval=1m --timeout=10s --start-period=120s \
CMD curl -v --silent http://karaf:karaf@localhost:8181/system/console/bundles 2>&1 | grep -Fq ${HEALTHCHECK_PHRASE} || exit 1
Original
HEALTHCHECK
from the Karaf's Dockerfile was moved to swarm config because of some odd behaviour (container never washealthy
when multi-stage build was applied)