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

Docker args support #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

filipevarjao
Copy link
Contributor

No description provided.

defp exec({"ARG", args}, context, _path) do
args = String.split(args, "=")

Map.merge(context, %{"Args" => Enum.at(args, 2)})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Args attribute doesn't exist, doing a short search through google i didn't found anything related to this, so, don't even know if this is possible, did you test it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i found something https://docs.docker.com/engine/api/v1.37/#operation/ImageBuild, it has an attribute called buildargs which is only used when building the image, but not the container

Copy link
Contributor Author

@filipevarjao filipevarjao Jan 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test using for real, only the test cover. I thought we had some args in the Bryan example.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can see an example of use here - and here

Copy link
Contributor

@sescobb27 sescobb27 Jan 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven’t been able to find anything about how to add support for ARG, I found about buildargs but is only supported when building a Dockerfile via build but we are not using it because we are building it manually (https://docs.docker.com/engine/api/v1.37/#operation/ImageBuild).

@ghost
Copy link

ghost commented Jun 1, 2019

This has been open a long time - I can imagine it being useful - we do need to get the layer checksums / caching working though. I'd suggest we get that working first then look at merging this in.

@filipevarjao filipevarjao force-pushed the docker_args_support branch from 2228ab0 to 1098b52 Compare June 3, 2019 14:09
@filipevarjao filipevarjao force-pushed the docker_args_support branch from 1098b52 to 29ea7ce Compare June 6, 2019 12:49
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