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

Dynamic Dockerfiles? #25

Open
nitzmahone opened this issue Dec 7, 2020 · 2 comments
Open

Dynamic Dockerfiles? #25

nitzmahone opened this issue Dec 7, 2020 · 2 comments

Comments

@nitzmahone
Copy link

IIUC, the recommended approach to using this action with custom base images is to fork or embed and add new Dockerfiles.

Assuming one didn't want additional customization in the Dockerfile beyond an arbitrary base image (which is always the case for the builtins and the custom images I was using), it seems like it'd be pretty straightforward to generate the Dockerfile on the fly from a template to make any base image work with the stock action. eg, add a new optional base_image arg that would be templated into FROM- without the arg, the current behavior against the Dockerfiles in the action, and with it, using a dynamic Dockerfile. This change would obviate the need to fork and customize the action merely for different base images.

Thoughts?

@uraimo
Copy link
Owner

uraimo commented Dec 8, 2020

Hi, yes it makes sense, I started with a fixed set of Dockerfiles because finding working images was not easy but when you know what you want to run just providing the image coordinates is way easier than forking it.
Feature approved and added to the todo list 👍

@berndpfrommer
Copy link

This would actually be a really nice feature to have!

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

3 participants