Skip to content

Commit c7036ec

Browse files
committed
Fix schema environment variables
1 parent 9f2c05a commit c7036ec

File tree

5 files changed

+33
-17
lines changed

5 files changed

+33
-17
lines changed

docker-compose.build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ services:
1515
VITE_OSM_URL: ${WS_OSM_URL}
1616
VITE_RAPID_URL: ${WS_RAPID_URL}
1717
VITE_PATHWAYS_EDITOR_URL: ${WS_PATHWAYS_EDITOR_URL}
18-
VITE_IMAGERY_SCHEMA: ${WS_IMAGERY_SCHEMA}
18+
VITE_IMAGERY_SCHEMA: ${WS_IMAGERY_SCHEMA_URL}
1919
VITE_IMAGERY_EXAMPLE_URL: ${WS_IMAGERY_EXAMPLE_URL}
20-
VITE_LONG_FORM_QUEST_SCHEMA: ${WS_LONG_FORM_QUEST_SCHEMA}
20+
VITE_LONG_FORM_QUEST_SCHEMA: ${WS_LONG_FORM_QUEST_SCHEMA_URL}
2121
VITE_LONG_FORM_QUEST_EXAMPLE_URL: ${WS_LONG_FORM_QUEST_EXAMPLE_URL}
2222
CODE_VERSION: ${CODE_VERSION}
2323

@@ -182,7 +182,7 @@ services:
182182
VITE_TDEI_USER_API_URL: ${WS_TDEI_BACKEND_URL}
183183
VITE_API_URL: ${WS_API_URL}
184184
VITE_OSM_URL: ${WS_OSM_URL}
185-
185+
186186
leaderboard-frontend_tag:
187187
extends: leaderboard-frontend
188188
image: ${WS_DOCKER_REGISTRY}/workspaces-leaderboard-frontend:${CODE_VERSION}

docker-compose.deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ x-osm-rails-base:
2828
tmpfs: /tmp/pids/
2929
stdin_open: true
3030
tty: true
31-
31+
3232
################################################################################
3333

3434
services:
@@ -88,10 +88,10 @@ services:
8888
- traefik.http.middlewares.redirect-to-https.replacepathregex.regex=^/api/v1/(.*)
8989
- traefik.http.middlewares.redirect-to-https.replacepathregex.replacement=/api/v1/$$1/
9090

91-
- traefik.http.routers.workspaces-backend.middlewares=cors-ws-backend,redirect-to-https
91+
- traefik.http.routers.workspaces-backend.middlewares=cors-ws-backend,redirect-to-https
9292
- traefik.http.routers.workspaces-backend.entrypoints=websecure
9393
- traefik.http.routers.workspaces-backend.tls.certresolver=myresolver
94-
94+
9595
# workspaces editors
9696
rapid:
9797
image: ${WS_DOCKER_REGISTRY}/workspaces-rapid:${WS_DOCKER_TAG}
@@ -192,6 +192,8 @@ services:
192192
env_file: tasking-manager/tasking-manager.env
193193
environment:
194194
GUNICORN_CMD_ARGS: "--workers 5 --threads 5 --timeout 179"
195+
WS_LONGFORM_SCHEMA_URL: ${WS_LONG_FORM_QUEST_SCHEMA_URL}
196+
WS_IMAGERY_SCHEMA_URL: ${WS_IMAGERY_SCHEMA_URL}
195197
labels:
196198
- traefik.enable=true
197199
- traefik.http.routers.tasks-backend.rule=Host(`${WS_TASKS_HOST}`) && PathPrefix(`/api/`)

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ services:
5353
VITE_OSM_URL: ${WS_OSM_URL}
5454
VITE_RAPID_URL: ${WS_RAPID_URL}
5555
VITE_PATHWAYS_EDITOR_URL: ${WS_PATHWAYS_EDITOR_URL}
56+
VITE_IMAGERY_SCHEMA: ${WS_IMAGERY_SCHEMA_URL}
57+
VITE_IMAGERY_EXAMPLE_URL: ${WS_IMAGERY_EXAMPLE_URL}
58+
VITE_LONG_FORM_QUEST_SCHEMA: ${WS_LONG_FORM_QUEST_SCHEMA_URL}
59+
VITE_LONG_FORM_QUEST_EXAMPLE_URL: ${WS_LONG_FORM_QUEST_EXAMPLE_URL}
5660
volumes:
5761
- ./frontend:/app
5862
labels:
@@ -172,6 +176,8 @@ services:
172176
env_file: tasking-manager/tasking-manager.env
173177
environment:
174178
GEVENT_SUPPORT: true
179+
WS_LONGFORM_SCHEMA_URL: ${WS_LONG_FORM_QUEST_SCHEMA_URL}
180+
WS_IMAGERY_SCHEMA_URL: ${WS_IMAGERY_SCHEMA_URL}
175181
ports:
176182
- "5678:5678" # debugpy debugger port
177183
volumes:

example.env

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ WS_API_HOST=api.workspaces.local
2626
WS_RAPID_HOST=rapid.workspaces.local
2727
WS_OSM_HOST=osm.workspaces.local
2828
WS_TASKS_HOST=tasks.workspaces.local
29-
WS_IMAGERY_SCHEMA=https://raw.githubusercontent.com/TaskarCenterAtUW/tdei-tools/refs/heads/main/docs/imagery-layer/schema.json
3029

3130
WS_DEV_PORT=3000
3231

@@ -40,6 +39,15 @@ WS_OSM_SECRET_KEY_BASE=secret
4039
WS_TASKS_SECRET_KEY=secret
4140
WS_MAPBOX_ACCESS_TOKEN=secret
4241

42+
###############################################################################
43+
# Schemas
44+
###############################################################################
45+
46+
WS_IMAGERY_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-imagery-list/refs/heads/main/schema/schema.json
47+
WS_IMAGERY_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-imagery-list/refs/heads/main/examples/example.json
48+
WS_LONG_FORM_QUEST_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/schema/schema.json
49+
WS_LONG_FORM_QUEST_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/examples/example.json
50+
4351
###############################################################################
4452
# Databases
4553
###############################################################################

tdei_uw.env

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#
2-
# Resources for dev and stage are often db-dev, db-stage, while prod resources
3-
# are just "db", not "db-prod". This variable allows us to construct the
2+
# Resources for dev and stage are often db-dev, db-stage, while prod resources
3+
# are just "db", not "db-prod". This variable allows us to construct the
44
# environment-prefixed variable values without putting the "-" in ENV which is
55
# used elsewhere.
66
#
77
# **This variable should therefore be set to empty string on prod **
8-
#
8+
#
99
ENV_NAME_PARAM=-${ENV}
1010

1111
###############################################################################
@@ -43,10 +43,6 @@ WS_RAPID_HOST=rapid.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
4343
WS_PATHWAYS_EDITOR_HOST=pathways.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
4444
WS_OSM_HOST=osm.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
4545
WS_TASKS_HOST=tasks.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
46-
WS_IMAGERY_SCHEMA=https://raw.githubusercontent.com/TaskarCenterAtUW/tdei-tools/refs/heads/main/docs/imagery-layer/schema.json
47-
WS_IMAGERY_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/tdei-tools/refs/heads/main/docs/imagery-layer/example.json
48-
WS_LONG_FORM_QUEST_SCHEMA=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/schema/schema.json
49-
WS_LONG_FORM_QUEST_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/examples/example.json
5046

5147
WS_DEV_PORT=3000
5248

@@ -61,10 +57,14 @@ WS_OSM_SECRET_KEY_BASE=${WS_OSM_SECRET_KEY_BASE}
6157
WS_TASKS_SECRET_KEY=${WS_TASKS_SECRET_KEY}
6258
WS_MAPBOX_ACCESS_TOKEN=${WS_MAPBOX_ACCESS_TOKEN}
6359

64-
# Backend
60+
###############################################################################
61+
# Schemas
62+
###############################################################################
6563

66-
IMAGERY_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/tdei-tools/refs/heads/main/docs/imagery-layer/schema.json
67-
LONGFORM_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/schema/schema.json
64+
WS_IMAGERY_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-imagery-list/refs/heads/main/schema/schema.json
65+
WS_IMAGERY_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-imagery-list/refs/heads/main/examples/example.json
66+
WS_LONG_FORM_QUEST_SCHEMA_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/schema/schema.json
67+
WS_LONG_FORM_QUEST_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/asr-quests/refs/heads/main/examples/example.json
6868

6969
###############################################################################
7070
# Databases

0 commit comments

Comments
 (0)