Skip to content

Commit

Permalink
Merge pull request #406 from sunya-ch/ci
Browse files Browse the repository at this point in the history
chore: allow set CTR_CMD and set --log-level debug in test
  • Loading branch information
sunya-ch authored Aug 23, 2024
2 parents 5576c3a + 8a98e84 commit 003c6f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ KEPLER_IMAGE ?= $(IMAGE_REGISTRY)/$(KEPLER_IMAGE_NAME):$(KEPLER_IMAGE_VERSION)
BASE_IMAGE ?= $(IMAGE_REGISTRY)/$(IMAGE_NAME)_base:$(IMAGE_VERSION)
TEST_IMAGE := $(IMAGE)-test

CTR_CMD = docker
CTR_CMD ?= docker
PYTHON = python3.10

DOCKERFILES_PATH := ./dockerfiles
Expand Down Expand Up @@ -51,7 +51,7 @@ run-estimator:
-p 8100:8100 \
--name estimator \
$(TEST_IMAGE) \
/bin/bash -c "$(PYTHON) tests/http_server.py & sleep 5 && estimator"
/bin/bash -c "$(PYTHON) tests/http_server.py & sleep 5 && estimator --log-level debug"

run-collector-client:
$(CTR_CMD) exec estimator /bin/bash -c \
Expand All @@ -73,8 +73,8 @@ run-model-server:
-v ${MODEL_PATH}:/mnt/models \
-p 8100:8100 \
--name model-server $(TEST_IMAGE) \
/bin/bash -c "$(PYTHON) tests/http_server.py & sleep 10 && model-server"; \
while ! docker logs model-server 2>&1 | grep -q 'Running on all'; do \
/bin/bash -c "$(PYTHON) tests/http_server.py & sleep 10 && model-server --log-level debug"; \
while ! $(CTR_CMD) logs model-server 2>&1 | grep -q 'Running on all'; do \
echo "... waiting for model-server to serve"; sleep 5; \
done

Expand Down

0 comments on commit 003c6f9

Please sign in to comment.