-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove multi-arch.bash but use docker to get images directly
Signed-off-by: Xiaodong Liu <liuxiaodong@loongson.cn>
- Loading branch information
1 parent
f668854
commit 922e507
Showing
10 changed files
with
64 additions
and
106 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
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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
TEST_IMAGES := debian busybox hello-world | ||
CONTAINER_ENGINE ?= docker | ||
|
||
download_images: | ||
$(foreach image, $(TEST_IMAGES),$(shell ./download_oci_image.sh $image)) | ||
chmod a+r $(foreach image, $(TEST_IMAGES), $(image).tar) | ||
|
||
clean: | ||
-rm *.tar | ||
|
||
.PHONY: download_images clean |
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,12 @@ | ||
#!/bin/bash | ||
|
||
IMAGE_TAR="$1".tar | ||
|
||
case $(go env GOARCH) in | ||
arm64) | ||
skopeo copy docker://arm64v8/$1:latest "$IMAGE_TAR" | ||
;; | ||
*) | ||
skopeo copy docker://amd64/$1:latest "$IMAGE_TAR" | ||
;; | ||
esac |