Skip to content

Commit e39f2a2

Browse files
authored
Update example orch (#38)
* Add uv pyproject.toml; updates to compose.yaml Started to bring things up-to-date and deal with some TODO items * tag overrides; sql template gitignore; doc updates * Create netbox SQL schema template (speed-up start)
1 parent 8d19d17 commit e39f2a2

File tree

8 files changed

+19915
-4
lines changed

8 files changed

+19915
-4
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
POSTGRES_DB: orchestrator-core
3636
volumes:
3737
- db-data:/var/lib/postgresql/data/
38-
- ./docker/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql
38+
- ./docker/postgresql:/docker-entrypoint-initdb.d
3939
healthcheck:
4040
test:
4141
[
@@ -144,7 +144,7 @@ services:
144144

145145
orchestrator-ui:
146146
container_name: orchestrator-ui
147-
image: "ghcr.io/workfloworchestrator/example-orchestrator-ui:3.4.0" # TODO make it possible to override the tag
147+
image: ${ORCH_UI_TAG:-ghcr.io/workfloworchestrator/example-orchestrator-ui:5.3.4}
148148
env_file:
149149
- ./docker/orchestrator-ui/orchestrator-ui.env
150150
- path: ./docker/overrides/orchestrator-ui/orchestrator-ui.env
@@ -157,7 +157,7 @@ services:
157157

158158
orchestrator:
159159
container_name: orchestrator
160-
image: "ghcr.io/workfloworchestrator/orchestrator-core:latest" # TODO make it possible to override the tag
160+
image: ${ORCH_BACKEND_TAG:-ghcr.io/workfloworchestrator/orchestrator-core:latest}
161161
env_file:
162162
- ./docker/orchestrator/orchestrator.env
163163
- path: ./docker/overrides/orchestrator/orchestrator.env

docker/orchestrator-ui/orchestrator-ui.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ NEXTAUTH_PROVIDER_NAME=""
1919
NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE=""
2020
OIDC_CONF_FULL_WELL_KNOWN_URL=""
2121
OAUTH2_ACTIVE=false
22+
AO_STACK_STATUS_URL=""
23+
ENABLE_AO_STACK_STATUS=false

docker/overrides/configuration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,18 @@ CORE_DIR=/path/to/my/orchestrator-core
2626
This orchestrator-core version is then installed into the container with hot reloading enabled.
2727

2828
**Note**: before changing CORE_DIR, any new database migrations should be manually reverted.
29+
30+
## Orchestrator UI & backend docker image overrides
31+
32+
In [docker-compose.yml](../../docker-compose.yml), the `orchestrator` and
33+
`orchestrator-ui` services use pre-built images to spin up their respective
34+
applications (i.e., there is no `build:` directive specified). The docker image
35+
tag defaults to use the artifacts built in the workfloworchestrator project's
36+
Github Container Registry, but can be overridden by setting environment
37+
variables.
38+
39+
### For Example
40+
41+
```bash
42+
ORCH_UI_IMAGE=my-local-image:tag docker compose up -d --force-recreate
43+
```

docker/postgresql/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sql
2+
!init.sql

0 commit comments

Comments
 (0)