forked from containers/buildah
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: TomSweeneyRedHat <[email protected]> Add the --target option to the bud command. This allows the user to specify the last stage to build in a multi stage Dockerfile. Addresses containers#632 Tests: ``` FROM fedora:latest RUN touch /foo FROM alpine:latest AS mytarget RUN touch /1 STEP 1: FROM alpine:latest AS mytarget Getting image source signatures Copying blob 6c40cc604d8e: 2.63 MiB / 2.63 MiB [============================] 2s Copying config caf27325b298: 1.48 KiB / 1.48 KiB [==========================] 0s Writing manifest to image destination Storing signatures STEP 2: RUN touch /1 STEP 3: COMMIT containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]localhost/tom:latest Getting image source signatures Skipping blob 503e53e365f3 (already present): 5.52 MiB / 5.52 MiB [=========] 0s Copying blob 3266af627e70: 3.50 KiB / 3.50 KiB [============================] 0s Copying config 52c07ff42762: 704 B / 704 B [================================] 0s Writing manifest to image destination Storing signatures --> 52c07ff42762c07286ecb608c342df4af7105190ce30f70b678ff667a26c1842 STEP 4: COMMIT containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]localhost/tom:latest Getting image source signatures Skipping blob 503e53e365f3 (already present): 5.52 MiB / 5.52 MiB [=========] 0s Skipping blob 3266af627e70 (already present): 3.50 KiB / 3.50 KiB [=========] 0s Copying config c75fd71d1f59: 704 B / 704 B [================================] 0s Writing manifest to image destination Storing signatures --> c75fd71d1f59c500b2009151919b3ee183c0314db9e91f30e348daca6bbaa74b IMAGE NAME IMAGE TAG IMAGE ID CREATED AT SIZE docker.io/library/alpine latest caf27325b298 Jan 30, 2019 17:19 5.8 MB localhost/tom ``` Signed-off-by: TomSweeneyRedHat <[email protected]>
- Loading branch information
1 parent
973bb88
commit d63fb39
Showing
7 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -414,6 +414,7 @@ return 1 | |
--signature-policy | ||
-t | ||
--tag | ||
--target | ||
--ulimit | ||
--userns | ||
--userns-uid-map | ||
|
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,5 @@ | ||
FROM fedora:latest | ||
RUN touch /foo | ||
|
||
FROM alpine:latest AS mytarget | ||
RUN touch /1 |