Reproduction steps
Run
bash ./install.sh --updateExpected behaviour
- Run
bash ./install.sh --update - Git pull
- Docker compose takes the services down
Actual behaviour
bash ./install.sh --update- Docker compose takes the services down
- Git pull
- Patch
Platform
Self-hosting
Evidence
As Fluxer gets larger, being able to make sure the git pull succeeds first should take precedence over making sure the server shuts down properly.
At this point in time, the longer it takes for the server to pull the latest build, the longer it takes for the server to come back online instead of only waiting for the down -> compilation/patch -> up.
2 comments
Comment by Rex
Comment by viinz
- Dump DB
- Stop Stack
- Backup seaweed-fs
- Start back up
- Pull images
- Recreate stack (very short downtime)
The initialdocker compose downis only for the backup, and the stack is started back up afterwards. I do feel like it would be nice to have only one downtime right after the pull, but as the docs state:a live copy can catch a file mid-write.