Repository navigation
Set image metadata - #1535
Set image metadata#1535
Conversation
|
LGTM! |
|
Nice! LGTM! /cc @shykes for DX review |
shykes
left a comment
There was a problem hiding this comment.
Awesome. Thanks Helder.
@aluzzardi @jlongtine @talentedmrjones are you OK with that package dagger/utils? Once it’s there, it’s forever :) I’m neutral.
Eh, I'd rather not just to be safe. I'd prefer a private |
I'd lean this direction for now, too. Just to reduce our public maintenance surface. We can expose it later, if we feel inclined. |
Signed-off-by: Helder Correia <[email protected]>
|
I've updated 🙂 |
Thank you! Good to go after CI passes :) |
Closes #1339
Signed-off-by: Helder Correia
/cc @jlongtine
Why
Currently there’s no way to update/add values to a Docker image metadata, only to replace in its entirety. Users expect to be able to change the default user, working directory and environment variables, for example.
What
Added a new
docker.#Setdefinition to update/add image config values.How
Here’s an example that adds to
PATH:The following
#ImageConfigfields are merged: env, label, volume and expose. The field onbuild is appended. All others are fully replaced.