▲ | shellwizard 5 days ago | |||||||
Would you kindly share how to do it? | ||||||||
▲ | nofunsir 5 days ago | parent | next [-] | |||||||
Wait... this whole time reading this thread, I'm racking my brain for what bitnami provided (I used to use them before docker came around. I never would have got Redmine up and going without them -- the install seemed so foreign.) that building a docker image couldn't, because surely everyone knows how to build one from scratch, right?... right? Is all the panic because everyone is trying to avoid learning how to actually install the pieces of software (once), and their magic (free) black boxes are going away? I recommend VS Code remote connections and docker builds via the docker extension to do rapid build-run-redo. Remember to make sure it works from scratch each time. You can automate them with Jenkins... (which came first, the Jenkins or the Jenkins Docker image?) I also recommend Platform One. (you'll need a smart card) I also recommend reading the particular software's documentation ;) | ||||||||
| ||||||||
▲ | nofunsir 5 days ago | parent | prev | next [-] | |||||||
To add, it's really satisfying to build your own, push it and host it on your own internal repo that anyone in your group can use. "Just go get the DEV image, Josh." | ||||||||
▲ | KronisLV 5 days ago | parent | prev [-] | |||||||
Not OP, but in general the process goes like this:
Example of cleanly installing some packages on Ubuntu LTS (in this case, also doing package upgrades in the base image) when building the base image, without the package caches left over:
In general, you'll want any common base images to be as slim as possible, but on the other hand unless you're a bank having some tools for debugging are nice to have, in case you ever need to connect to the containers directly. In the end, it might look a bit like this:
In general, building container images like this will lead to bigger file sizes than grabbing an upstream image (e.g. eclipse-temurin:21-jdk-noble) but layer reuse will make this a bit less of an issue (if you have the same server running multiple images) and also it can be very nice to know what's in your images and have them be built in fairly straightforwards ways. Ofc you can make it way more advanced if you need to. | ||||||||
|