Update CLIC: missing-supplier export warnings and migration 0011 (#83)

Update all four CLIC services (`clic-web`, `clic-package-exports`, `clic-brightway-json-exports`, and `clic-inventory-archive`) to the same verified `linux/amd64` image. This includes the BrightPath 1.0.0a6 fixes already proposed in this PR and allows exports with missing non-background suppliers to succeed with explicit warnings.

```text
gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2
```

## Required database migration

**This release requires `downloads.0011_packageexportjob_warnings`.** It adds a JSON `warnings` column to package export jobs; existing jobs receive an empty list. Inventories, user accounts and published dataset versions are not rewritten.

The normal `clic-web` container startup runs `initialize_inventory_catalog`, which applies pending migrations before starting Gunicorn. All three CLIC workers already wait for the web service to be healthy. Pull and recreate all four services with the new image, allowing web initialization to complete before the updated workers start.

If deploying with a custom startup path that bypasses the image entrypoint, apply the migration explicitly before starting the updated processes:

```sh
docker compose run --rm --entrypoint python clic-web manage.py migrate --noinput
```

---------

Co-authored-by: romainsacchi <r_s@me.com>
Reviewed-on: linux/WebHosting_DMZ#83
Co-authored-by: sacchi_r <romain.sacchi@psi.ch>
This commit is contained in:
sacchi_randromainsacchi authored and buchel_k committed 2026-10-09 15:00:49 +02:00
1 parent a642fbad8b
commit aac0b1062b
1 file changed
+4 -4
+4 -4
View File
@@ -147,7 +147,7 @@ services:
# Romain Sacchi <romain.sacchi@psi.ch>
# CLIC Django platform
clic-web:
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0}
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2}
container_name: clic-web
restart: always
env_file:
@@ -192,7 +192,7 @@ services:
- clic_backend
clic-package-exports:
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0}
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2}
container_name: clic-package-exports
restart: always
env_file:
@@ -223,7 +223,7 @@ services:
- clic_backend
clic-brightway-json-exports:
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0}
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2}
container_name: clic-brightway-json-exports
restart: always
env_file:
@@ -261,7 +261,7 @@ services:
- clic_backend
clic-inventory-archive:
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0}
image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2}
container_name: clic-inventory-archive
restart: always
env_file: