Hashicorp Packer is the tool to build VM images with the same idea as building a container image. I used it some years ago before moving to K8s completely
Someone told me that our public facing dns server running bind has 3800+ days of uptime and despite bind is up to date, the Linux version is really old... it's running on a dl360 g4 server.
Since they also proposed to have a different master/slave configuration my idea was to use ansible to have all the stuff reproducible.
Then packer seemed to be necessary, then started to look at some more complex configurations and found that in many cases you just create gigantic bash script that apply the configurations.
So I should go to my wiki page with all the commands to create my server and transform them into a script that I should test several times.
Ok if you have 100s of identical servers, but when you have just 4?
Answer for both, really, look at docker config files. Essentially you specify what version of what distro to download, what to apt-get, what to download/git clone/... and you get out a VM image.
a012|2 years ago
mercurialuser|2 years ago
dharmab|2 years ago
For 2. You don't even need compose. Just build a container image from a Dockerfile.
candiodari|2 years ago