4 ms·
Hi Stavros, Could you please clarify how do you do the deployment of a new version? Not every commit to master is necessarily a deployment, right? So how do y
by slig 10y ago
Hi Stavros,
Could you please clarify how do you do the deployment of a new version?
Not every commit to master is necessarily a deployment, right? So how do you trigger it?
How did you configure Captain Webhook to get the new image and replace the current one that was running?
- StavrosK 10y agoHey slig. I use Git (or Github) flow, so yes, every commit to master is necessarily a deployment (that's why I only have the build and deployment running on the master branch). Captain Webhook just restarts the service. The systemd service file looks like this, and auto-pulls on every restart: https://www.pastery.net/xrutdm/ https://www.pastery.net/xrutdm/ I will update the post with the above, thank you.
- cdelsolar 10y agoHow do you prevent downtime from Docker restarting?
- StavrosK 10y agoThat is an excellent question! I don't, right now, but I'll find a way!
- dimino 10y agoI think the "right" answer here is to put something like nginx in front with load balancing, and rolling restarts, or something like that. I'm in a very similar situation as what you've got described, and I'll start in on that part of the project sometime in the next month or so. Also been looking at Elastic Beanstalk for deployments. Have you looked at that yet?
- StavrosK 10y agoYes, I think the way to do that is to have nginx switch new requests to the updated app server, and shut down the first one when it's not serving requests any more. I don't know how you'd communicate with nginx inside the container to tell it to switch, though, or how you would be able to know when all requests were done on the old container. Hopefully there's an easy way. Too bad that a single SIGHUP becomes so complicated with containers, but I guess it's a tradeoff. About the Beanstalk, I haven't looked into it too much, maybe that can help with deployment. I'd be grateful if you could let me know how it worked, if you ever try it out.
- CroCroCro 10y agoclone: https://www.pastery.net/yjqmbz/ https://www.pastery.net/yjqmbz/
- StavrosK 10y agoSorry about the default duration, I've changed mine to never expire, thanks.