Continuing the discussion from Can Discourse ship frequent Docker images that do not need to be bootstrapped?:
Well, it took me two years, but I finally bothered to learn how to create a separate data container and rebuild/upgrade the site with a minute rather than a quarter hour of downtime. Just yesterday I started thinking about creating a
./discourse-setup that would create two containers (based on
web_only.yml) rather than one.
I hadn’t started looking at launcher’s exit codes to see if I could safely script
./launcher bootstrap web ./launcher destroy web ./launcher start web
to avoid destroying the container if the new one didn’t get created.
Since the site isn’t down during a rebuild, reducing the build time is less critical.