top | item 36531592

(no title)

mercurialuser | 2 years ago

But you need to create: 1. A Custom vm image, so how do you do it?

2. A container: here is a bit simpler since you may use docer-compose...

discuss

order

a012|2 years ago

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

mercurialuser|2 years ago

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?

dharmab|2 years ago

For 1. Hashicorp Packer

For 2. You don't even need compose. Just build a container image from a Dockerfile.

candiodari|2 years ago

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.