malaskowski / aet-docker

Docker support for AET - easy to set up local/developer environment with example Docker Swarm configuration.
Apache License 2.0
8 stars 9 forks source link

Karaf with resolved features image #1

Closed malaskowski closed 6 years ago

malaskowski commented 6 years ago

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