Skip to content

Commit a141b66

Browse files
committed
2 parents 3d8ce6d + a5761df commit a141b66

File tree

4 files changed

+47
-36
lines changed

4 files changed

+47
-36
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ For stage or prod, tags *should* (must!) point to a commit in the main branch!
2020

2121
The repos this process pulls from are:
2222

23-
* TaskarCenterAtUW/workspaces-frontend
24-
* TaskarCenterAtUW/workspaces-cgimap
25-
* TaskarCenterAtUW/workspaces-openstreetmap-website
26-
* TaskarCenterAtUW/workspaces-pathways-editor
27-
* TaskarCenterAtUW/workspaces-rapid
28-
* TaskarCenterAtUW/workspaces-tasking-manager
23+
* [TaskarCenterAtUW/workspaces-frontend](https://github.com/TaskarCenterAtUW/workspaces-frontend)
24+
* [TaskarCenterAtUW/workspaces-cgimap](https://github.com/TaskarCenterAtUW/workspaces-cgimap)
25+
* [TaskarCenterAtUW/workspaces-openstreetmap-website](https://github.com/TaskarCenterAtUW/workspaces-openstreetmap-website)
26+
* [TaskarCenterAtUW/workspaces-pathways-editor](https://github.com/TaskarCenterAtUW/workspaces-pathways-editor)
27+
* [TaskarCenterAtUW/workspaces-rapid](https://github.com/TaskarCenterAtUW/workspaces-rapid)
28+
* [TaskarCenterAtUW/workspaces-tasking-manager](https://github.com/TaskarCenterAtUW/workspaces-tasking-manager)
29+
* [TaskarCenterAtUW/workspaces-leaderboard](https://github.com/TaskarCenterAtUW/workspaces-leaderboard)
2930

3031
We use lightweight tags to indicate the environment a specific commit will deploy to:
3132
```
@@ -58,7 +59,7 @@ See GitHub's actions tab in this repo for more deployment examples/steps.
5859
* ```osm-cgimap```: Faster version of osm-rails. API format the same as osm-rails. Only some functions of osm-rails.
5960
* ```tasking-manager```: Not currently using, but task manager for OSM.
6061

61-
# Getting Started
62+
# Getting Started (Possibly Outdated; See Individual Repos)
6263

6364
### To build images for deploy
6465

@@ -81,7 +82,7 @@ Replace XXX.env with the environment definition file of the environment for whic
8182
* ```example.env```: template of the .env file required by the Docker compose YAML files
8283
* ```tdei_uw.env```: .env for deployment at UW's TDEI center. Only UW should use this, new users should adapt example.env to suit their needs. LTG: remove this file from this repo.
8384

84-
# Local Development
85+
# Local Development (Possibly Outdated; See Individual Repos)
8586

8687
### To build images for local development
8788

docker-compose.build.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
services:
2-
32
# workspaces FE (Vue app)
43
frontend:
54
image: ${WS_DOCKER_REGISTRY}/workspaces-frontend:${ENV}
@@ -17,6 +16,9 @@ services:
1716
VITE_RAPID_URL: ${WS_RAPID_URL}
1817
VITE_PATHWAYS_EDITOR_URL: ${WS_PATHWAYS_EDITOR_URL}
1918
VITE_IMAGERY_SCHEMA: ${WS_IMAGERY_SCHEMA}
19+
VITE_IMAGERY_EXAMPLE_URL: ${WS_IMAGERY_EXAMPLE_URL}
20+
VITE_LONG_FORM_QUEST_SCHEMA: ${WS_LONG_FORM_QUEST_SCHEMA}
21+
VITE_LONG_FORM_QUEST_EXAMPLE_URL: ${WS_LONG_FORM_QUEST_EXAMPLE_URL}
2022
CODE_VERSION: ${CODE_VERSION}
2123

2224
frontend_tag:
@@ -112,7 +114,7 @@ services:
112114
- type=registry,ref=${WS_DOCKER_REGISTRY}/workspaces-osm-rails:buildcache,mode=max
113115
context: osm-rails
114116
dockerfile: Dockerfile.prod
115-
117+
116118
osm-rails_tag:
117119
extends: osm-rails
118120
image: ${WS_DOCKER_REGISTRY}/workspaces-osm-rails:${CODE_VERSION}
@@ -133,23 +135,23 @@ services:
133135
image: ${WS_DOCKER_REGISTRY}/workspaces-osm-cgimap:${CODE_VERSION}
134136

135137
# tasking manager
136-
tasks-frontend:
137-
image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${ENV}
138-
build:
139-
cache_from:
140-
- type=registry,ref=${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:buildcache
141-
cache_to:
142-
- type=registry,ref=${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:buildcache,mode=max
143-
context: tasking-manager
144-
dockerfile: ./scripts/docker/Dockerfile.frontend
145-
args:
146-
TM_APP_API_URL: ${WS_TASKS_URL}
147-
#TM_CONSUMER_KEY
148-
#TM_CONSUMER_SECRET
149-
150-
tasks-frontend_tag:
151-
extends: tasks-frontend
152-
image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${CODE_VERSION}
138+
# tasks-frontend:
139+
# image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${ENV}
140+
# build:
141+
# cache_from:
142+
# - type=registry,ref=${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:buildcache
143+
# cache_to:
144+
# - type=registry,ref=${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:buildcache,mode=max
145+
# context: tasking-manager
146+
# dockerfile: ./scripts/docker/Dockerfile.frontend
147+
# args:
148+
# TM_APP_API_URL: ${WS_TASKS_URL}
149+
# #TM_CONSUMER_KEY
150+
# #TM_CONSUMER_SECRET
151+
152+
# tasks-frontend_tag:
153+
# extends: tasks-frontend
154+
# image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${CODE_VERSION}
153155

154156
# tasking manager
155157
tasks-backend:

docker-compose.deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ services:
176176
CGIMAP_MAP_AREA: ${WS_OSM_MAX_EXPORT_AREA}
177177

178178
# tasking manager (*not* Workspaces)
179-
tasks-frontend:
180-
image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${WS_DOCKER_TAG}
181-
restart: always
182-
labels:
183-
- traefik.enable=true
184-
- traefik.http.routers.tasks-frontend.rule=Host(`${WS_TASKS_HOST}`)
185-
- traefik.http.services.tasks-frontend.loadbalancer.server.port=80
186-
- traefik.http.routers.tasks-frontend.entrypoints=websecure
187-
- traefik.http.routers.tasks-frontend.tls.certresolver=myresolver
179+
# tasks-frontend:
180+
# image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-frontend:${WS_DOCKER_TAG}
181+
# restart: always
182+
# labels:
183+
# - traefik.enable=true
184+
# - traefik.http.routers.tasks-frontend.rule=Host(`${WS_TASKS_HOST}`)
185+
# - traefik.http.services.tasks-frontend.loadbalancer.server.port=80
186+
# - traefik.http.routers.tasks-frontend.entrypoints=websecure
187+
# - traefik.http.routers.tasks-frontend.tls.certresolver=myresolver
188188

189189
tasks-backend:
190190
image: ${WS_DOCKER_REGISTRY}/workspaces-tasks-backend:${WS_DOCKER_TAG}

tdei_uw.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ WS_PATHWAYS_EDITOR_HOST=pathways.workspaces${ENV_NAME_PARAM}.sidewalks.washingto
4444
WS_OSM_HOST=osm.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
4545
WS_TASKS_HOST=tasks.workspaces${ENV_NAME_PARAM}.sidewalks.washington.edu
4646
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/tdei-tools/refs/heads/main/docs/quest-definition/schema.json
49+
WS_LONG_FORM_QUEST_EXAMPLE_URL=https://raw.githubusercontent.com/TaskarCenterAtUW/tdei-tools/refs/heads/main/docs/quest-definition/example.json
4750

4851
WS_DEV_PORT=3000
4952

@@ -58,6 +61,11 @@ WS_OSM_SECRET_KEY_BASE=${WS_OSM_SECRET_KEY_BASE}
5861
WS_TASKS_SECRET_KEY=${WS_TASKS_SECRET_KEY}
5962
WS_MAPBOX_ACCESS_TOKEN=${WS_MAPBOX_ACCESS_TOKEN}
6063

64+
# Backend
65+
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/tdei-tools/refs/heads/main/docs/quest-definition/schema.json
68+
6169
###############################################################################
6270
# Databases
6371
###############################################################################

0 commit comments

Comments
 (0)