Skip to content
This repository has been archived by the owner on Apr 28, 2018. It is now read-only.

--build-args #179

Open
Plork opened this issue Feb 27, 2017 · 4 comments
Open

--build-args #179

Plork opened this issue Feb 27, 2017 · 4 comments

Comments

@Plork
Copy link

Plork commented Feb 27, 2017

Output of ipmo Docker; (module Docker).Version.ToString() (from a powershell process):

0.1.0.111

New-ContainerImage does not have an option to provide "build time" arguments. for example:

docker build -t container --build-arg https_proxy=http://proxy:3128 .\container

Same goes for the Start-Container and all other cmdlets. To provide runtime environment variables or build time ones does not exist at the moment.

@jterry75
Copy link
Contributor

@Plork - Took a look at this. It looks like by just exposing the ImageBuildArgs as an additional parameter set you would be able to do this. Want to take a shot at contributing it?

@Plork
Copy link
Author

Plork commented Feb 27, 2017

Well I only know Powershell and a bit of Python and no C# tho ;)

@jterry75
Copy link
Contributor

Ok :) I will see if we cant add this for ya

@megamorf
Copy link

megamorf commented Apr 24, 2017

Would that accept a hashtable or just be a string consisting of key value pairs separated by spaces?

The former would be more PowerShell-like.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants