Run the activity tracker as its own published image at /tracker/
Same shape as jobs: adam-french.co.uk/adamf/activity-tracker, published by the adamf/ccp repo's CI, with an explicit environment list and its own database role. nginx strips the /tracker prefix. The env test now covers the new service's allow-list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -110,12 +110,12 @@ func composeServiceEnv(t *testing.T, service string) []string {
|
||||
|
||||
// explicitEnvServices are the containers given an explicit `environment:`
|
||||
// list instead of the whole .env, so that they never hold the database
|
||||
// password or the JWT secret: the Python service, and the job tracker (an
|
||||
// image from its own repo, which gets its own database role besides). The
|
||||
// password or the JWT secret: the Python service, and the job and activity
|
||||
// trackers (images from their own repos, each with its own database role). The
|
||||
// cost is a third place a new variable for one of them has to be added — the
|
||||
// registry, .env.example and that list — and forgetting the third is silent:
|
||||
// the variable is simply empty inside the container.
|
||||
var explicitEnvServices = []string{"python", "jobs"}
|
||||
var explicitEnvServices = []string{"python", "jobs", "activity-tracker"}
|
||||
|
||||
// So the registry's claim "this service reads this" and the compose list must
|
||||
// agree, in both directions:
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
{"name": "BACKEND_ENDPOINT", "group": "Infrastructure", "purpose": "URL prefix nginx mounts the API at", "kind": "text", "editable": false, "lockedReason": "The Vue app assumes /api."},
|
||||
{"name": "PYTHON_HOST", "group": "Infrastructure", "purpose": "Python container name and nginx upstream", "kind": "text", "editable": false, "lockedReason": "Renames a container and repoints nginx."},
|
||||
{"name": "PYTHON_PORT", "group": "Infrastructure", "purpose": "Python listen port", "kind": "text", "editable": false, "lockedReason": "Renames a container or repoints nginx."},
|
||||
{"name": "ACTIVITY_TRACKER_IMAGE_TAG", "group": "Infrastructure", "purpose": "Activity tracker image tag to run (default latest)", "kind": "text", "editable": false, "lockedReason": "Changing it needs a pull: docker compose pull activity-tracker && docker compose up -d activity-tracker."},
|
||||
{"name": "JOBS_IMAGE_TAG", "group": "Infrastructure", "purpose": "Job tracker image tag to run (default latest)", "kind": "text", "editable": false, "lockedReason": "Changing it needs a pull: docker compose pull jobs && docker compose up -d jobs."},
|
||||
{"name": "ICECAST_HOST", "group": "Infrastructure", "purpose": "Icecast container name and nginx upstream", "kind": "text", "editable": false, "lockedReason": "Renames a container and repoints nginx."},
|
||||
{"name": "ICECAST_PORT", "group": "Infrastructure", "purpose": "Icecast listen port", "kind": "text", "editable": false, "lockedReason": "Renames a container or repoints nginx."},
|
||||
@@ -65,6 +66,10 @@
|
||||
{"name": "POSTGRES_JOBS_DB", "group": "Database", "purpose": "Job tracker database name", "kind": "text", "editable": false, "lockedReason": "Created by hand on first install; see the job-tracker README."},
|
||||
{"name": "POSTGRES_JOBS_USER", "group": "Database", "purpose": "Job tracker database role", "kind": "text", "editable": false, "lockedReason": "Created by hand on first install; changing it here locks the tracker out."},
|
||||
{"name": "POSTGRES_JOBS_PASSWORD", "group": "Database", "purpose": "Job tracker database password", "kind": "secret", "editable": false, "lockedReason": "Set on the role by hand; changing it here locks the tracker out."},
|
||||
{"name": "POSTGRES_TRACKER_DB", "group": "Database", "purpose": "Activity tracker database name", "kind": "text", "editable": false, "lockedReason": "Created by hand on first install; see the ccp README."},
|
||||
{"name": "POSTGRES_TRACKER_USER", "group": "Database", "purpose": "Activity tracker database role", "kind": "text", "editable": false, "lockedReason": "Created by hand on first install; changing it here locks the activity tracker out."},
|
||||
{"name": "POSTGRES_TRACKER_PASSWORD", "group": "Database", "purpose": "Activity tracker database password", "kind": "secret", "editable": false, "lockedReason": "Set on the role by hand; changing it here locks the activity tracker out."},
|
||||
{"name": "TRACKER_TZ", "group": "Activity tracker", "purpose": "Timezone where the activity tracker's day starts, e.g. Europe/London (blank is UTC)", "kind": "text", "editable": true, "services": ["activity-tracker"]},
|
||||
|
||||
{"name": "GITEA_HOST", "group": "Gitea", "purpose": "Gitea container name and nginx upstream", "kind": "text", "editable": false, "lockedReason": "Renames a container and repoints nginx."},
|
||||
{"name": "GITEA_PORT", "group": "Gitea", "purpose": "Gitea HTTP port", "kind": "text", "editable": false, "lockedReason": "Renames a container or repoints nginx."},
|
||||
|
||||
Reference in New Issue
Block a user