-
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.
specify git branch manually. specify a toml config file. specify a buildx image location. - Don't globally "use" builder. - Upgraded unit tests to beter test builder.
- Loading branch information
1 parent
11e95d4
commit 3911731
Showing
8 changed files
with
136 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
createBuilder | ||
docker buildx build -o type=registry -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f ./docker/Dockerfile . 2>&1 | ||
removeBuilder | ||
docker buildx create --driver=docker-container --driver-opt="image=moby/buildkit:buildx-stable-1" | ||
BUILDX_BUILDER=test_builder docker buildx build -o type=registry -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f ./docker/Dockerfile . 2>&1 | ||
docker buildx rm test_builder --force |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
createBuilder | ||
docker buildx build -o type=registry -t docker-registry/docker-repo:latest -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f ./docker/Dockerfile . 2>&1 | ||
removeBuilder | ||
docker buildx create --driver=docker-container --driver-opt="image=moby/buildkit:buildx-stable-1" | ||
BUILDX_BUILDER=test_builder docker buildx build -o type=registry -t docker-registry/docker-repo:latest -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f ./docker/Dockerfile . 2>&1 | ||
docker buildx rm test_builder --force |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
createBuilder | ||
docker buildx build -o type=registry -t docker-registry/docker-repo:tag1 --cache-from=type=registry,ref=docker-registry/docker-repo:main --cache-from=type=registry,ref=docker-registry/docker-repo:main -f ./docker/Dockerfile . 2>&1 | ||
removeBuilder | ||
docker buildx create --driver=docker-container --driver-opt="image=moby/buildkit:buildx-stable-1" | ||
BUILDX_BUILDER=test_builder docker buildx build -o type=registry -t docker-registry/docker-repo:tag1 --cache-from=type=registry,ref=docker-registry/docker-repo:main -f ./docker/Dockerfile . 2>&1 | ||
docker buildx rm test_builder --force |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
createBuilder | ||
docker buildx build -o type=registry --build-arg build-arg1 --build-arg build-arg2 --platform=platform1,platform2 --arg1 on --arg2 off -t docker-registry/docker-repo:tag1 -t docker-registry/docker-repo:tag2 -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f dockerfile build-context-dir 2>&1 | ||
removeBuilder | ||
docker buildx create --driver=docker-container --driver-opt="image=moby/buildkit:buildx-stable-1" | ||
BUILDX_BUILDER=test_builder docker buildx build -o type=registry --build-arg build-arg1 --build-arg build-arg2 --platform=platform1,platform2 --arg1 on --arg2 off -t docker-registry/docker-repo:tag1 -t docker-registry/docker-repo:tag2 -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f dockerfile build-context-dir 2>&1 | ||
docker buildx rm test_builder --force |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
createBuilder | ||
docker buildx build -o type=registry --build-arg build-arg --platform=target --arg on -t docker-registry/docker-repo:tag -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f dockerfile build-context-dir 2>&1 | ||
removeBuilder | ||
docker buildx create --driver=docker-container --driver-opt="image=myrepo/moby/buildkit:buildx-stable-1" --config test.toml | ||
BUILDX_BUILDER=test_builder docker buildx build -o type=registry --build-arg build-arg --platform=target --arg on -t docker-registry/docker-repo:tag -t docker-registry/docker-repo:mocked-git-version -t docker-registry/docker-repo:mocked-git-branch --cache-from=type=registry,ref=docker-registry/docker-repo:mocked-git-branch -f dockerfile build-context-dir 2>&1 | ||
docker buildx rm test_builder --force |
Oops, something went wrong.