From 8960c111efa8f13cdb1f9484311addbc0da9f31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= Date: Fri, 10 Jan 2025 17:58:41 +0100 Subject: [PATCH] fix: update HTTP port in scripts, bump version to v0.0.29 --- k8s/local.yaml | 2 +- pyproject.toml | 2 +- scripts/run.sh | 2 +- test/e2e/test_http.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/k8s/local.yaml b/k8s/local.yaml index 8d682b4..28938b8 100644 --- a/k8s/local.yaml +++ b/k8s/local.yaml @@ -36,7 +36,7 @@ spec: image: localhost/bee-code-interpreter:local ports: - containerPort: 50051 - - containerPort: 8000 + - containerPort: 50081 env: - name: APP_FILE_STORAGE_PATH value: /storage diff --git a/pyproject.toml b/pyproject.toml index 1d11ef1..6b2e874 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bee-code-interpreter" -version = "0.0.28" +version = "0.0.29" license = "Apache-2.0" description = "A gRPC service intended as a backend for an LLM that can run arbitrary pieces of Python code." authors = [ "Jan Pokorný ", "Tomáš Dvořák " ] diff --git a/scripts/run.sh b/scripts/run.sh index 7f3a05a..2fc65e3 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -19,6 +19,6 @@ docker build -t localhost/bee-code-executor:local executor kubectl delete -f k8s/local.yaml || true kubectl apply -f k8s/local.yaml kubectl wait --for=condition=Ready pod/code-interpreter-service -kubectl port-forward pods/code-interpreter-service 8000:8000 50051:50051 & +kubectl port-forward pods/code-interpreter-service 50081:50081 50051:50051 & kubectl logs --follow code-interpreter-service wait \ No newline at end of file diff --git a/test/e2e/test_http.py b/test/e2e/test_http.py index 3f602f4..cfd49d3 100644 --- a/test/e2e/test_http.py +++ b/test/e2e/test_http.py @@ -12,7 +12,7 @@ def config(): @pytest.fixture def http_client(): - base_url = "http://localhost:8000" + base_url = "http://localhost:50081" return httpx.Client(base_url=base_url)