[0]: https://github.com/supabase/postgres/blob/de88f3dc1c80fbf7d1...
[0]: https://github.com/supabase/postgres/blob/de88f3dc1c80fbf7d1...
[0]: https://github.com/supabase/postgres/blob/0c5178588791d9472c...
As there are multiple approaches to address that issue (I use Dockerfile templates with loops for example, but I am not a fan of them), I was wondering if you considered different approaches too. In my experience, users like to have regular Dockerfile, as they are familiar with it. Would it be possible or make sense in your opinion to run Ansible inside the Dockerfile and keep a more standard approach to Docker image building?
Disclaimer: I am not familiar with Ansible.
For context, producing AWS EC2/ DO droplet images are more of the more important objectives of the repository. Hence, the idea of using Ansible which is used to build these images naturally became the first approach in order to consolidate everyone together.
As for running Ansible inside the Dockerfile, I have yet to try that out myself but it does sound possible since one can run Ansible on itself locally. Would have definitely considered it as the next approach to attempt if the first one failed.
Ie rather than the typical "apt install" have "ansible" in the build-part?
Ansible is a tool for provisioning a system in a particular way. What's the difference between running ansible against an ephemeral VM vs running against a container?
One of the maintainers commented in a sibling comment to yours that they use the same ansible to build VM images, so that was more work.
> and then using `docker commit` (a command I've barely used/seen being used in my 2+ years of using docker daily).
Well, if you use Dockerfiles then of course you won't see a command used mostly by alternative build processes, but that's hardly a meaningful objection.
I personally prefer a different setup, but any team that already has a strong skill set in both tools may benefit from building on top of preecisting domain knowledge.
Here, Ansible is used to build the image itself, which is, afaik, less common. But don't see why it can't be done though.