3 ms·
I am curious about the strategy to build the prod container on the prod infrastucture. What level of concern is there about the reproducibility and reliability
by zmmmmm 6y ago
I am curious about the strategy to build the prod container on the prod infrastucture.
What level of concern is there about the reproducibility and reliability of such builds? I've had docker containers stop building due to unknown dependencies disappearing or ageing out.
And then presumably depending what kind of in code base it is, you could have some very intensive tasks and / or large containers involved in doing that build - which may itself cause some degradation of service or require a bigger server than you would need just to run the app.
I'd be interested in seeing a version of this that pulled the image from a CI/CD container registry - or does that defeat most of the purpose?
- polyrand 6y agoI would definitely not do it that way in a more serious project. But for side projects that don't have a ton of traffic I found it's perfectly fine (and faster) to just build the container on the prod server. The website for which I'm using this method is doing a multi-stage docker build compiling SQLite in the first stage. Everything is working perfect so far.