forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support customizing the Docker build command (testcontainers#1931)
* break: add BuildOptions method in order to support advanced customisations at build time * chore: add a test for not finding the given target in the Dockerfile * chore: make sure the auth configs are always added * docs: document the advanced usage * chore: make sure the first tag is not overriden by the user * chore: make sure the build context and dockerfile is not overriden * fix: lint
- Loading branch information
1 parent
6d1dd3e
commit 3a513f3
Showing
5 changed files
with
184 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM docker.io/alpine AS target0 | ||
CMD ["echo", "target0"] | ||
|
||
FROM target0 AS target1 | ||
CMD ["echo", "target1"] | ||
|
||
FROM target1 AS target2 | ||
CMD ["echo", "target2"] |