Skip to content

Commit

Permalink
feat: Add code-interpreter service (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorrr authored Oct 16, 2024
1 parent 3847fff commit fd64463
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "sdks/python-sdk"]
path = sdks/python-sdk
url = https://github.com/julep-ai/python-sdk.git
[submodule "code-interpreter/vendor/cohere-ai/cohere-terrarium"]
path = code-interpreter/vendor/cohere-ai/cohere-terrarium
url = https://github.com/cohere-ai/cohere-terrarium.git
22 changes: 22 additions & 0 deletions code-interpreter/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: julep-code-interpreter

services:
code-interpreter:
image: julepai/code-interpreter:${TAG:-dev}

build:
context: ./vendor/cohere-ai/cohere-terrarium
dockerfile: Dockerfile

volumes:
# See: https://github.com/cohere-ai/cohere-terrarium/blob/8df9169dac19199c9eb4091c232c2687d27bbc15/src/services/python-interpreter/service.ts#L9
- code_interpreter_data:/usr/src/app/default_python_home

profiles:
- code-interpreter

ports:
- "9090:8080" # Binding to 9090, since 8080 is taken

volumes:
code_interpreter_data:
1 change: 1 addition & 0 deletions code-interpreter/vendor/cohere-ai/cohere-terrarium
Submodule cohere-terrarium added at 179d9c
22 changes: 21 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ group "default" {
"memory-store",
"integrations",
"gateway",
"blob-store",
"code-interpreter",
]
}

Expand Down Expand Up @@ -69,4 +71,22 @@ target "gateway" {
"julepai/gateway:${TAG}",
"julepai/gateway:git-${GIT_SHA}"
]
}
}

target "blob-store" {
context = "./blob-store"
dockerfile = "Dockerfile"
tags = [
"julepai/blob-store:${TAG}",
"julepai/blob-store:git-${GIT_SHA}"
]
}

target "code-interpreter" {
context = "./code-interpreter/vendor/cohere-ai/cohere-terrarium"
dockerfile = "Dockerfile"
tags = [
"julepai/code-interpreter:${TAG}",
"julepai/code-interpreter:git-${GIT_SHA}"
]
}
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include:
- ./integrations-service/docker-compose.yml
- ./monitoring/docker-compose.yml
- ./blob-store/docker-compose.yml
- ./code-interpreter/docker-compose.yml

# TODO: Enable after testing
# - ./monitoring/docker-compose.yml
Expand All @@ -23,7 +24,7 @@ include:
# - agents-api runs under two modes:
# + single-tenant: `SKIP_CHECK_DEVELOPER_HEADERS=True` and `AGENTS_API_KEY` is required
# [user] --{Authorization: Bearer $api-key}--> [agents-api]
# + multi-tenant:
# + multi-tenant:
# `SKIP_CHECK_DEVELOPER_HEADERS=False` and requests must have a valid `X-Developer-Id` header
# [user]
# --{Authorization: Bearer $JWT}--> [gateway]
Expand Down

0 comments on commit fd64463

Please sign in to comment.