Skip to content

Conversation

kpalang
Copy link
Contributor

@kpalang kpalang commented Jul 3, 2025

This PR adds templating capabilities to render a Dockerfile and an accompanying compose.yaml for each OIE release.

To render the files ensure you have installed gomplate. Then run the ./render_docker_images.sh script from repository root.

To build the images, run the following command from repo root, replacing the 4.5.2-tp.1 with your desired version number.

docker compose -f dockerfiles/4.5.2-tp.1/compose.yaml build --build-arg CREATED_AT=$(date -u +"%Y-%m-%dT%H:%M:%SZ")

@kpalang kpalang marked this pull request as ready for review July 3, 2025 19:13
@kpalang kpalang requested review from a team, gibson9583, jonbartels, kayyagari and tonygermano and removed request for a team July 3, 2025 19:13
@kpalang kpalang force-pushed the feature/templated-dockerfiles branch from 889a82d to 4ed4d20 Compare July 3, 2025 20:34
@kpalang kpalang marked this pull request as draft July 3, 2025 20:38
@kpalang kpalang force-pushed the feature/templated-dockerfiles branch from 4ed4d20 to ea559ac Compare July 3, 2025 20:42
@kpalang kpalang marked this pull request as ready for review July 6, 2025 19:15
@jonbartels
Copy link
Contributor

Can you show some other projects that use this same strategy?

@kpalang
Copy link
Contributor Author

kpalang commented Jul 6, 2025

Can you show some other projects that use this same strategy?

The official postgres image uses template rendering, although not with gomplate,
IIRC all official Docker images use template rendering.

@kpalang
Copy link
Contributor Author

kpalang commented Jul 14, 2025

Adding this to leave a trace behind, good conversation going on in this thread in Discord.

@kpalang kpalang mentioned this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants