You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Allen Wittenauer (Jira)" <ji...@apache.org> on 2020/04/06 15:29:00 UTC
[jira] [Updated] (YETUS-919) Support extra Docker build-args
[ https://issues.apache.org/jira/browse/YETUS-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Wittenauer updated YETUS-919:
-----------------------------------
Release Note:
<!-- markdown -->
Adds a function `add_docker_build_arg` taking a key or key and value to export to the Docker build via `--build-arg`
was:Adds a function {{add_docker_build_arg}} taking a key or key and value to export to the Docker build via {{--build-arg}}.
> Support extra Docker build-args
> -------------------------------
>
> Key: YETUS-919
> URL: https://issues.apache.org/jira/browse/YETUS-919
> Project: Yetus
> Issue Type: Improvement
> Components: Precommit
> Reporter: Clay B.
> Assignee: Clay B.
> Priority: Minor
> Fix For: 0.12.0
>
> Attachments: 0001-YETUS-919.-Support-extra-Docker-build-args.patch, 0002-YETUS-919.-Support-extra-Docker-build-args.patch
>
>
> Trying to use [{{build-arg}}|https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg] options for a build, it seems there is no way to supply build-args to either the [first|https://github.com/apache/yetus/blob/601c145a024f81aed189c319673b2e1c8a3d9e7e/precommit/src/main/shell/core.d/docker.sh#L699-L712] nor [second|https://github.com/apache/yetus/blob/601c145a024f81aed189c319673b2e1c8a3d9e7e/precommit/src/main/shell/core.d/docker.sh#L699-L712] {{docker build}} runs.
> This is useful to bake an image with some configuration. I was trying to use {{build-arg}}s to ensure a Docker and Vagrant run could share configuration via shell environment variables.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)