You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Uploading to GitHub Container Registry (GHCR)
67
67
68
-
You shouldn't need to this, since it's already been done, but, before the app be used on the server, the relevant database needs to get set up with the schema from `sql/schema.sql`. @TheBizzle has scripts and YAML files laying around, showing how he did this, and can produce them upon request.
68
+
To publish the Docker images from this repository for use on the cluster, navigate to [this GitHub Actions page](https://github.com/NetLogo/telemetry2/actions/workflows/publish-image.yaml) and click "Run workflow". After choosing the branch/tag that you want to publish, confirming your selection, and waiting less than a minute, the image should become available [here](https://github.com/NetLogo/telemetry2/pkgs/container/telemetry2).
69
69
70
-
#### Uploading to GitHub Container Registry (GHCR)
70
+
#### One-time only: Configure variables and secrets
71
+
72
+
You shouldn't need to do this, since it's already been done, but, before the app can be used on the server, a few "secret" values need to be defined in Kubernetes:
73
+
74
+
*`pg-pretalx-credentials` (for root DB user)
75
+
*`PGUSER`
76
+
*`PGPASSWORD`
77
+
*`telemetry2-db-credentials` (for the DB account that will be created for this app)
78
+
*`PGUSER`
79
+
*`PGPASSWORD`
80
+
81
+
#### One-time only: Setting up the schema
82
+
83
+
This is also already done on the real server, but note that setting up a fresh instance of this requires applying the schema from `sql/schema.sql`.
71
84
72
-
To publish the Docker images for use on the cluster, navigate to [this GitHub Actions page](https://github.com/NetLogo/telemetry2/actions/workflows/publish-image.yaml) and click "Run workflow". After choosing the branch/tag that you want to publish, confirming your selection, and waiting less than a minute, the image should become available [here](https://github.com/NetLogo/telemetry2/pkgs/container/telemetry2).
85
+
The file for it is `kubernetes/00-initialize-db.yaml`. Note that it assumes a Postgres DB name of `postgres-pretalx`. It also assumes the presence of the secrets mentioned in the previous step.
0 commit comments