File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ IMAGES=("spin-hello-world" "spin-keyvalue" "spin-outbound-redis" "spin-multi-tri
1313docker build -t k3d-shim-test " $dockerfile_path "
1414
1515k3d cluster create " $cluster_name " \
16- --image k3d-shim-test --api-port 6551 -p ' 8082:80@loadbalancer' --agents 2
16+ --image k3d-shim-test --api-port 6551 -p ' 8082:80@loadbalancer' --agents 2 \
17+ --registry-create test-registry:0.0.0.0:5000
1718
1819kubectl wait --for=condition=ready node --all --timeout=120s
1920
@@ -23,6 +24,12 @@ for i in "${!DOCKER_IMAGES[@]}"; do
2324 mkdir -p " ${OUT_DIRS[$i]} "
2425 docker save -o " ${OUT_DIRS[$i]} /img.tar" " ${IMAGES[$i]} :latest"
2526 k3d image import " ${OUT_DIRS[$i]} /img.tar" -c " $cluster_name "
27+
28+ # # also do spin builds and spin registry push
29+ # # images pushed as localhost:5000/<namespace>/<app>:<version>
30+ # # can be pulled as registry:5000/<namespace>/<app>:<version> from within k3d cluster
31+ spin build -f " ./images/${DOCKER_IMAGES[$i]} /spin.toml"
32+ spin registry push " localhost:5000/spin-registry-push/${IMAGES[$i]} :latest" -f " ./images/${DOCKER_IMAGES[$i]} /spin.toml" -k
2633done
2734
2835sleep 5
You can’t perform that action at this time.
0 commit comments