- Makefile 84.4%
- Dockerfile 15.6%
| .forgejo/workflows | ||
| helm | ||
| migrations | ||
| .dockerignore | ||
| CHANGELOG.md | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
source-organization-db
The database of the bronorganisatie in Notificatie voor Burgers (blauwe-knop layering: process, service, db):
a CloudNativePG cluster and the migrations of its schema. Only source-organization-service talks to it.
Migrations: 000001_berichten (berichten and volgnummers), 000002_retour (the verzenddienst's
zending_referentie per bericht and the moment retour_op its zending came back as onbestelbaar),
000003_adreskaart (a bericht goes to an adreskaart instead of a functioneel adres) and
000004_volgnummers_per_digest (volgnummers keyed by the SHA-256 of the adreskaart, which is too long
for a btree index entry) and 000005_burgers (the burgers the adresregister delivered, with name, BSN and
adreskaart under an id of the bronorganisatie's own; a bericht goes to that id).
Contents
migrations/: golang-migrate migrations. Keepsource-organization-service/internal/repositories/testdata/schema.sqlequal to them; the service tests run against that copy.Dockerfile: an image with nothing but the migrations andmigrate.helm/: a CloudNativePGCluster(one instance, seccompRuntimeDefaultas Fundament requires) and a migration Job that runs after every install and upgrade. CloudNativePG creates the Secret<release>-appwith the connection string (uri) that the service reads.
Development
CI applies the migrations up, down and up again against a real Postgres. Locally:
migrate -path migrations -database "$DATABASE_URL" up
helm lint helm
Release
make release VERSION=1.2.3 # on an up-to-date main: writes helm/Chart.yaml, commits, tags v1.2.3
git push --follow-tags
The tag pipeline tags the image 1.2.3 and v1.2.3 and publishes the chart at 1.2.3 to the
Forgejo Helm registry (see the charts repository). The environments repository pins that
version.
License
EUPL-1.2, see LICENSE.