Skip to content

Commit da735b4

Browse files
test images use kubernetes instead of local docker
1 parent be8cc03 commit da735b4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

k8/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ push-images: docker-bake.json
9696

9797
test-%: docker-bake.json
9898
# docker buildx bake --push $(*F)
99-
docker run \
99+
kubectl run \
100+
$(*F) \
100101
--rm \
101102
-it \
102-
-e PYTHON_RECORD_API_TO_MODULES=numpy,pandas \
103-
-e PYTHON_RECORD_API_OUTPUT_FILE=/tmp/d/out.jsonl \
104-
-v $$PWD/tmp:/tmp/d \
105-
$(call sub_image,$(*F))
103+
--restart='Never' \
104+
--env=PYTHON_RECORD_API_TO_MODULES=numpy,pandas \
105+
--env=PYTHON_RECORD_API_OUTPUT_FILE=/dev/stdout \
106+
--image=$(call sub_image,$(*F))
106107

107108

108109
# push-images: $(addprefix push-image-,$(IMAGES))

0 commit comments

Comments
 (0)