Re:The future of Nginx: Getting back to our open source roots
by vbezhenar on Wednesday August 24, 2022 @04:57AM
(#32576673)
I did something similar. It puts my server to knees and takes something like a hour to complete, requiring all services to stop before I can run it. This is extremely unergonomic for me.
Re:The future of Nginx: Getting back to our open source roots
by rootsu on Wednesday August 24, 2022 @05:28AM
(#32576941)
You can just create the image on some other powerful server and the just pull the final image from the registry.
Re:The future of Nginx: Getting back to our open source roots
by jamespo on Wednesday August 24, 2022 @05:06AM
(#32576743)
what's the server spec?
Re:The future of Nginx: Getting back to our open source roots
by vbezhenar on Wednesday August 24, 2022 @06:14AM
(#32577339)
VPS with 1 core and 512 MB RAM. I just checked, not really a hour, it spent 25 minutes and then failed with "no space left on device". Right now there's 4.9GB free, so it takes at least around 5 GB disk space which is an issue as well.
Building on separate computer will work, of course, but it makes everything more complex.
Re:The future of Nginx: Getting back to our open source roots
by zebracanevra on Wednesday August 24, 2022 @10:55AM
(#32580254)
Easy way around that is to use a CI service like GH Actions. Build it there, push it to dockerhub, and you're done.
Have it run on a schedule to keep it updated, if necessary. Alternatively, GH Actions allows you to set a manual trigger so you can rebuild whenever.
e.g:
You can keep your container image, and just do the "COPY --from=builder" step in there. We do this in CI/CD on every build.