-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run xxx-taskrunner develop containerrs with hotswapping (#3845)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4da6b17
commit 597d9d7
Showing
13 changed files
with
363 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,85 @@ | ||
--- | ||
services: | ||
gollm-taskrunner: | ||
container_name: gollm-taskrunner | ||
image: ghcr.io/darpa-askem/gollm-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ-ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ-PASSWORD: "terarium123" | ||
TERARIUM_MQ-USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST-TYPE: "gollm" | ||
OPENAI_API_KEY: "${secret_gollm_openai_key}" | ||
depends_on: | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
taskrunner-dev-builder: | ||
build: | ||
dockerfile: ../../packages/taskrunner/Dockerfile | ||
target: taskrunner_dev_builder | ||
container_name: taskrunner-dev-builder | ||
volumes: | ||
- ../../packages/taskrunner:/taskrunner | ||
|
||
mira-taskrunner: | ||
container_name: mira-taskrunner | ||
image: ghcr.io/darpa-askem/mira-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ-ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ-PASSWORD: "terarium123" | ||
TERARIUM_MQ-USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST-TYPE: "mira" | ||
depends_on: | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
gollm-taskrunner: | ||
build: | ||
dockerfile: ./packages/gollm/Dockerfile | ||
target: gollm_taskrunner_builder | ||
container_name: gollm-taskrunner | ||
image: ghcr.io/darpa-askem/gollm-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ_ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ_PASSWORD: "terarium123" | ||
TERARIUM_MQ_USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST_TYPE: "gollm" | ||
OPENAI_API_KEY: "${secret_gollm_openai_key}" | ||
depends_on: | ||
taskrunner-dev-builder: | ||
condition: service_started | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
volumes: | ||
- ../../packages/gollm:/gollm_task | ||
- ../../packages/taskrunner:/taskrunner | ||
command: /gollm_task/dev.sh | ||
|
||
funman-taskrunner: | ||
container_name: funman-taskrunner | ||
image: ghcr.io/darpa-askem/funman-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ-ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ-PASSWORD: "terarium123" | ||
TERARIUM_MQ-USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST-TYPE: "funman" | ||
depends_on: | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
mira-taskrunner: | ||
build: | ||
dockerfile: ../../packages/mira/Dockerfile | ||
target: mira_taskrunner_builder | ||
container_name: mira-taskrunner | ||
image: ghcr.io/darpa-askem/mira-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ_ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ_PASSWORD: "terarium123" | ||
TERARIUM_MQ_USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST_TYPE: "mira" | ||
depends_on: | ||
taskrunner-dev-builder: | ||
condition: service_started | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
volumes: | ||
- ../../packages/mira:/mira_task | ||
- ../../packages/taskrunner:/taskrunner | ||
command: /mira_task/dev.sh | ||
|
||
funman-taskrunner: | ||
build: | ||
dockerfile: ../../packages/funman/Dockerfile | ||
target: funman_taskrunner_builder | ||
container_name: funman-taskrunner | ||
image: ghcr.io/darpa-askem/funman-taskrunner:latest | ||
networks: | ||
- terarium | ||
environment: | ||
TERARIUM_MQ_ADDRESSES: "amqp://rabbitmq:5672" | ||
TERARIUM_MQ_PASSWORD: "terarium123" | ||
TERARIUM_MQ_USERNAME: "terarium" | ||
TERARIUM_TASKRUNNER_REQUEST_TYPE: "funman" | ||
depends_on: | ||
taskrunner-dev-builder: | ||
condition: service_started | ||
rabbitmq: | ||
condition: service_healthy | ||
extra_hosts: | ||
- "${local_host_name}:host-gateway" | ||
volumes: | ||
- ../../packages/funman:/funman_task | ||
- ../../packages/taskrunner:/taskrunner | ||
command: /funman_task/dev.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
funman_task.egg-info | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
mira.egg-info | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# ensure the volume mounted python code is using editable mode | ||
echo "Installing python tasks" | ||
cd /funman_task | ||
pip install -e . | ||
|
||
# run it | ||
echo "Running taskrunner" | ||
cd /taskrunner | ||
./gradlew --project-cache-dir /tmp/.gradle/$$ bootRun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
gollm_task.egg-info | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
mira.egg-info | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.