Skip to content

Commit

Permalink
add --load to test/py-flask to fix the CI issue
Browse files Browse the repository at this point in the history
The issue says "WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load"

Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
  • Loading branch information
Mossaka committed Jul 13, 2023
1 parent bf71029 commit 2827e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test/k8s/_out/img: test/k8s/Dockerfile Cargo.toml Cargo.lock $(shell find . -typ

.PHONY: test/py-flask
test/py-flask:
$(DOCKER_BUILD) -t py-flask-app:latest -f $@/Dockerfile $@
$(DOCKER_BUILD) -t py-flask-app:latest -f $@/Dockerfile --load $@
mkdir -p $@/out && docker save -o $@/out/img.tar py-flask-app:latest

.PHONY: test/k8s/cluster
Expand Down
2 changes: 1 addition & 1 deletion test/k8s/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ spec:
image: ghcr.io/containerd/runwasi/wasi-demo-app:latest
imagePullPolicy: Never
- name: py-demo
image: py-cmd-app:v1
image: py-flask-app:latest
imagePullPolicy: Never

0 comments on commit 2827e2a

Please sign in to comment.