Repository navigation
Use ARG instead of ENV for temporary variables - #15
Conversation
|
CC @cverna @debarshiray @juhp @HarryMichal |
|
Thanks for digging into this, @travier If |
|
I'm reasonably confident that this is the right change but I still need someone with more Fedora infra experience to confirm it. |
|
@travier have you tried a scratch build? IIRC, these are used by atomic-reactor during the build so it would be good to double check that builds are still successful after this change. |
|
Hum ok, from a quick look at atomic-reactor it in fact using the LABELS (https://github.com/containerbuildsystem/atomic-reactor/blob/master/atomic_reactor/plugins/bump_release.py#L263) and not the ENV variables so I think this should work 👍 |
|
How do I trigger a scratch build? I tried: |
We only need those temporary variables for the container build and for the LABELS. We do not want to set those specific environment variables for the container environment itself. Using ARG instead of ENV lets us do that. The ARG directive only support one value per line thus psplit the definition into multiple ones. See: containers/toolbox#188 See: https://docs.docker.com/engine/reference/builder/#arg Signed-off-by: Timothée Ravier <[email protected]>
I pulled in the same change to the upstream Toolbx Git repository: |
|
Ok merging this, thanks for fixing this. |
We only need those temporary variables for the container build and for the LABELS. We do not want to set those specific environment variables for the container environment itself.
Using ARG instead of ENV lets us do that.
See: containers/toolbox#188
Signed-off-by: Timothée Ravier [email protected]