I am using the XWiki docker image xwiki:stable-mysql-tomcat and have it automatically update using watchtower (pulls updated image and restart container with this image). It’s just a private setup so no big deal regarding availability etc. if this happens a couple of times every week.
However, after every update/relaunch of the container I am greeted with a “XWiki is initializing (12%)…” message when I first connect with my browser. Or, if it’s a major update I need to manually upgrade some packages using the web migration wizard which also takes a couple of minutes.
Is there a way to automate this, so that after an update, basically I have a “pre-heated” xwiki installation that I can immediately use?
I am playing around with docker-compose labels like:
This could replace the additions you are making on a docker level. It is also used by the openDesk project so you have some level of maintenance there.
Not sure about the automatic updates of the XWiki flavor tho…
daubsi, hi! I am not sure what is the way for confluence, but I got rid off this init by using health checks on OpenShift/Kubernetes. The way with curl is right, because we basically have to simulate the entry to XWiki.
Using a healthcheck would be such a nice solution, but unfortunately it doesn’t work in my case as I use traefik as a frontend LB and "curl"ing the traefik URL in the healthcheck doesn’t work as traefik only starts servicing the URL once the container is NOT unhealthy → Chicken/egg problem