dlang-dockerized / packaging

D Programming Language · dockerized
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Template engine #8

Open 0xEAB opened 10 months ago

0xEAB commented 10 months ago

Should we use a template engine to generate image recipes?

0xEAB commented 10 months ago

I doubt this could reduce the bloat in this repo for adding new images as we’d still want to store the generated Dockerfiles somewhere and pin versions together. E.g. there’s likely no good reason to build an image with future DMD 2.150 on an OS version from now. Also we don’t want to create a always growing matrix of systems × compilers.

0xEAB commented 10 months ago

I particularly dislike the Bash and GNU/Busybox magic certain other Docker image repos use to generate their recipes. I’d prefer to have a novice-readable script in Python or something. (Pero no hablo Python…)

Reavershark commented 10 months ago

j2 is probably the most well-known: https://pypi.org/project/Jinja2/. I still would like generated dockerfiles to be committed or at least released.

0xEAB commented 10 months ago

I still would like generated dockerfiles to be committed or at least released.

would it make sense to create a “release” branch that includes the CI/CD generated dockerfiles?

Reavershark commented 10 months ago

That makes sense yeah, should work nicely.