Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using INCLUDE+ with parametrized builds #6

Open
nyurik opened this issue Apr 18, 2021 · 1 comment
Open

Using INCLUDE+ with parametrized builds #6

nyurik opened this issue Apr 18, 2021 · 1 comment

Comments

@nyurik
Copy link

nyurik commented Apr 18, 2021

Hi, would it be possible to use INCLUDE+ with parameterized builds? PostGIS repo uses this approach, where several basic templates are used with bash param substitution to build many different images. In an ideal case, there would be a simple dockerfile that sets up a few ARG/ENV parameters before importing a common file. Also, are there any limitations to the INCLUDE+, e.g. with multi-stage builds, etc?

Thanks for an awesome extension, sad that upstream hasn't resolved these types of use cases despite user's requests.

@barcode
Copy link
Contributor

barcode commented Apr 27, 2021

In my experiments this works (well env stays on default during build)
You can see this here and here.

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

No branches or pull requests

2 participants