Skip to content

Commit

Permalink
ci: update bee code interpreter setup
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Nov 13, 2024
1 parent 9e83921 commit 02b19a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ dist
/.idea
/experiments

# Infrastructure related
infra/bee-code-interpreter/*
!infra/bee-code-interpreter/k8s/bee-code-interpreter.yaml

# Code interpreter data
/tmp/code_interpreter_target/*
/tmp/code_interpreter_source/*
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
profiles:
- all
- code_interpreter
image: "rancher/k3s:v1.30.5-k3s1"
image: "rancher/k3s:v1.31.2-k3s1"
command: ["server", "--tls-san", "bee-code-interpreter-k3s"]
tmpfs:
- /run
Expand All @@ -17,12 +17,12 @@ services:
restart: always
volumes:
- k3s-containerd:/var/lib/rancher/k3s/agent/containerd
- ./infra/bee-code-interpreter/k8s:/var/lib/rancher/k3s/server/manifests
- ${CODE_INTEPRETER_TMPDIR:-./tmp/code_interpreter_target}:/storage
- ./infra/bee-code-interpreter.yaml:/var/lib/rancher/k3s/server/manifests/bee-code-interpreter.yaml
ports:
- "50051:30051"
healthcheck:
test: "kubectl get po code-interpreter | grep Running"
test: "kubectl get pod code-interpreter | grep Running"
interval: 10s
retries: 10
start_period: 30s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
value: icr.io/i-am-bee/bee-code-executor:0.0.27
- name: APP_FILE_STORAGE_PATH
value: /storage
- name: APP_EXECUTOR_POD_QUEUE_TARGET_LENGTH
value: "1"
volumeMounts:
- name: storage-volume
mountPath: /storage
Expand Down

0 comments on commit 02b19a9

Please sign in to comment.