Skip to content

Commit

Permalink
Add debug cmd before kind load image
Browse files Browse the repository at this point in the history
Signed-off-by: llhuii <[email protected]>
  • Loading branch information
llhuii committed Mar 3, 2021
1 parent 670569f commit f156b27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hack/local-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ build_worker_base_images() {

load_images_to_master() {
local image

for image in $GM_IMAGE; do
# just use the docker-image command of kind instead of ctr
# docker save $image | docker exec -i $MASTER_NODENAME ctr --namespace k8s.io image import -
Expand Down Expand Up @@ -454,8 +455,16 @@ do_up() {
add_cleanup 'rm -rf "$TMP_DIR"'

build_component_image gm lc
# on github ci action, sometimes kind-load reported the error that gm/lc
# image not present locally, here for debug.
# TODO: remove these docker-images
docker images

build_worker_base_images
# remove stage builder image

docker images

# remove stage builder images
docker image prune --filter=stage=builder

check_prerequisites
Expand Down

0 comments on commit f156b27

Please sign in to comment.