Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4511 from nalind/multiple-label
bud: Consolidate multiple synthetic LABEL instructions
- Loading branch information
Showing
8 changed files
with
99 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine | ||
ENV a=b | ||
ENV c=d | ||
# E and G are passed in on the command-line, and we haven't overridden them yet, so the command will get the CLI values. | ||
RUN echo a=$a c=$c E=$E G=$G | ||
ENV E=E G=G | ||
# We just set E and G, and that will override values passed at the command line thanks to imagebuilder's handling of ENV instructions. | ||
RUN echo a=$a c=$c E=$E G=$G | ||
|
||
FROM 0 | ||
ENV w=x | ||
ENV y=z | ||
# I and K are passed in on the command-line, and we haven't overridden them yet, so the command will get the CLI values. | ||
RUN echo w=$w y=$y I=$I K=$K | ||
ENV I=I K=K | ||
# We just set I and K, and that will override values passed at the command line thanks to imagebuilder's handling of ENV instructions. | ||
RUN echo w=$w y=$y I=$I K=$K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM busybox | ||
ENV a=b | ||
ENV c=d | ||
RUN echo E=$E G=$G | ||
ENV E=E G=G | ||
RUN echo E=$E G=$G |