docker icon indicating copy to clipboard operation
docker copied to clipboard

Provide build-time argument with docker_image resource

Open fetherolfjd opened this issue 8 years ago • 2 comments
trafficstars

This may be a feature request, rather than a bug. Is it possible to provide a build time argument with the docker_image resource? Thus making it analogous to the command: docker build --build-arg ENVIRONMENT=production -f dockerfiles/Dockerfile .

Cookbook version

2.13.10

Chef-client version

12.5.1

Platform Details

Ubuntu 14.04.5 LTS

Scenario:

Trying to copy specific files into a configuration directory based on the environment being set up, i.e. production, integration, test, etc.

fetherolfjd avatar Feb 17 '17 14:02 fetherolfjd

Absolutely. That's one of the things that showed up in the API after the initial resource implementation. Should be straight forward to implement.

On Feb 17, 2017, at 2:38 PM, Justin F. [email protected] wrote:

This may be a feature request, rather than a bug. Is it possible to provide a build time argument with the docker_image resource? Thus making it analogous to the command: docker build --build-arg ENVIRONMENT=production -f dockerfiles/Dockerfile .

Cookbook version

2.13.10

Chef-client version

12.5.1

Platform Details

Ubuntu 14.04.5 LTS

Scenario:

Trying to copy specific files into a configuration directory based on the environment being set up, i.e. production, integration, test, etc.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

someara avatar Feb 17 '17 15:02 someara

+1 really useful feature

i will have a look into implementation

salsa-dev avatar Aug 06 '19 08:08 salsa-dev