archive: ten Omeka themes ship with the archive port and survive restarts (OMEKA_THEMES, pinned, loud when one is missing) #1970

Closed
opened 2026-09-28 17:46:13 +00:00 by ben · 3 comments
Owner

What

The Community archive (Omeka S) ships with one theme, Default. A steward who wants another look has no lasting way to get one: Omeka installs themes on the server, and a theme added by hand is lost at the next start of the archive.

Make a fixed list of themes part of the archive port, so every deployed archive offers them under Site admin → Theme and they survive restarts, deploys and re-founds.

Asked for by Ben, 2026-09-28, after trying the themes on whakatohea-demo.

Why a hand install does not last

podman-omeka re-creates the container on every start. Only two paths are mounted: /var/lib/archive/files and the sign-in module from the store. /var/www/html/volume/themes lives in the container's own layer, so it is rebuilt from the image each time. Local Contexts survives only because the render names it in OMEKA_MODULES and the image fetches it again on each start.

Evidence (whakatohea-demo, 2026-09-28): the container's creation time and the Local Contexts module directory carry the same timestamp, 03:34 UTC.

The themes

Ten, all installed by hand on the demo and listed by Omeka as active on 4.2.1. Pin these versions:

Theme id Version Author Installed size
bookshelf 2.0.1 Indic Digital Archive Foundation 0.6 MB
thanksroy 1.2.2 Omeka Team 0.7 MB
thedaily 1.7.1 Omeka Team 1.1 MB
centerrow 1.8.5 Omeka Team 1.2 MB
cozy 1.6.3 Omeka Team 1.2 MB
freedom 1.1.0 Omeka Team 1.9 MB
lively 1.1.0 Omeka Team 2.0 MB
papers 1.4.5 Omeka Team 3.9 MB
foundation 1.5.4 Omeka Team 3.9 MB
Rosenwald-Fund-Collection 1.0.0 LaTaevia Berry 9.7 MB

Total about 26 MB installed, 18 MB to download. Multilingual is left out: it targets Omeka 3.

Keep the list as one constant so it is easy to trim. Two themes come from outside the Omeka team (bookshelf, Rosenwald-Fund-Collection); Ben asked for all ten.

How

The pinned image already supports this. Its entrypoint (/docker-entrypoint-init.d/02-configure-omeka.sh) runs omeka-s-cli theme:download <name> for each space-separated name in OMEKA_THEMES, and theme:download accepts id:version.

  1. In internal/clan/archive.go, render OMEKA_THEMES beside OMEKA_MODULES, each entry as id:version.
  2. The entrypoint only logs a failed download and carries on. Add a loud check: after the archive is up, confirm every listed theme is present and fail the unit by name if one is missing. Follow the existing oneshots' shape (wait for readiness, set -euo pipefail, no || true).
  3. Do not change the site's theme. archive-brand keeps creating the site on default; the steward chooses.

Acceptance criteria

  • The archive render sets OMEKA_THEMES to the ten pinned themes.
  • After a deploy, omeka-s-cli theme:list inside the container lists all ten plus default, and again after systemctl restart podman-omeka.
  • A listed theme that failed to download fails a named unit; it is not a silent gap.
  • A site set to one of the ten still renders after a restart of the archive.
  • Render tests in internal/clan/archive_test.go cover the env line, the pinned versions and the check.
  • docs/GOTCHAS.md gains an entry: the archive container is re-created on every start, so themes and modules added by hand do not last.
  • STATUS.md updated in the same commit.

Out of scope

  • Applying the community's brand colours or logo to a theme (DDR 0225 rules on that).
  • Custom CSS or a custom theme.
  • Letting a steward add themes of their own choosing.

Open hazard to record, not to solve here

Start-up now depends on GitHub being reachable. If that proves a problem, the alternative is to fetch each theme into the store by hash and mount it read-only, as the sign-in module is.

## What The Community archive (Omeka S) ships with one theme, Default. A steward who wants another look has no lasting way to get one: Omeka installs themes on the server, and a theme added by hand is lost at the next start of the archive. Make a fixed list of themes part of the archive port, so every deployed archive offers them under Site admin → Theme and they survive restarts, deploys and re-founds. Asked for by Ben, 2026-09-28, after trying the themes on whakatohea-demo. ## Why a hand install does not last `podman-omeka` re-creates the container on every start. Only two paths are mounted: `/var/lib/archive/files` and the sign-in module from the store. `/var/www/html/volume/themes` lives in the container's own layer, so it is rebuilt from the image each time. Local Contexts survives only because the render names it in `OMEKA_MODULES` and the image fetches it again on each start. Evidence (whakatohea-demo, 2026-09-28): the container's creation time and the Local Contexts module directory carry the same timestamp, 03:34 UTC. ## The themes Ten, all installed by hand on the demo and listed by Omeka as active on 4.2.1. Pin these versions: | Theme id | Version | Author | Installed size | |---|---|---|---| | bookshelf | 2.0.1 | Indic Digital Archive Foundation | 0.6 MB | | thanksroy | 1.2.2 | Omeka Team | 0.7 MB | | thedaily | 1.7.1 | Omeka Team | 1.1 MB | | centerrow | 1.8.5 | Omeka Team | 1.2 MB | | cozy | 1.6.3 | Omeka Team | 1.2 MB | | freedom | 1.1.0 | Omeka Team | 1.9 MB | | lively | 1.1.0 | Omeka Team | 2.0 MB | | papers | 1.4.5 | Omeka Team | 3.9 MB | | foundation | 1.5.4 | Omeka Team | 3.9 MB | | Rosenwald-Fund-Collection | 1.0.0 | LaTaevia Berry | 9.7 MB | Total about 26 MB installed, 18 MB to download. `Multilingual` is left out: it targets Omeka 3. Keep the list as one constant so it is easy to trim. Two themes come from outside the Omeka team (bookshelf, Rosenwald-Fund-Collection); Ben asked for all ten. ## How The pinned image already supports this. Its entrypoint (`/docker-entrypoint-init.d/02-configure-omeka.sh`) runs `omeka-s-cli theme:download <name>` for each space-separated name in `OMEKA_THEMES`, and `theme:download` accepts `id:version`. 1. In `internal/clan/archive.go`, render `OMEKA_THEMES` beside `OMEKA_MODULES`, each entry as `id:version`. 2. The entrypoint only logs a failed download and carries on. Add a loud check: after the archive is up, confirm every listed theme is present and fail the unit by name if one is missing. Follow the existing oneshots' shape (wait for readiness, `set -euo pipefail`, no `|| true`). 3. Do not change the site's theme. `archive-brand` keeps creating the site on `default`; the steward chooses. ## Acceptance criteria - [ ] The archive render sets `OMEKA_THEMES` to the ten pinned themes. - [ ] After a deploy, `omeka-s-cli theme:list` inside the container lists all ten plus `default`, and again after `systemctl restart podman-omeka`. - [ ] A listed theme that failed to download fails a named unit; it is not a silent gap. - [ ] A site set to one of the ten still renders after a restart of the archive. - [ ] Render tests in `internal/clan/archive_test.go` cover the env line, the pinned versions and the check. - [ ] `docs/GOTCHAS.md` gains an entry: the archive container is re-created on every start, so themes and modules added by hand do not last. - [ ] `STATUS.md` updated in the same commit. ## Out of scope - Applying the community's brand colours or logo to a theme (DDR 0225 rules on that). - Custom CSS or a custom theme. - Letting a steward add themes of their own choosing. ## Open hazard to record, not to solve here Start-up now depends on GitHub being reachable. If that proves a problem, the alternative is to fetch each theme into the store by hash and mount it read-only, as the sign-in module is.

swarm-claim host=matou-dev-server-01 run=35172
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=35172 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1970 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 51b292295 is not a valid commit object (fabricated, or never pushed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/archive.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/archive_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1970,
  "status": "success",
  "commits": [
    "51b292295"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/archive.go",
    "internal/clan/archive_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The archive render sets OMEKA_THEMES to the ten pinned themes": "internal/clan/archive.go — omekaThemes list + omekaThemesEnv() renders the OMEKA_THEMES env line in renderOmekaContainers; pinned by TestRenderArchive_ThemesEnvIsPinned",
    "After a deploy, theme:list lists all ten plus default, and again after restart": "render mechanism — OMEKA_THEMES is re-fetched by the erseco entrypoint's theme:download on EVERY container start (survives restart/deploy/re-found, the same shape OMEKA_MODULES/Local Contexts uses, GOTCHAS #356); live drive deferred to clan-lab as with the port's other legs (unproven_by_seam)",
    "A listed theme that failed to download fails a named unit; not a silent gap": "renderOmekaThemesCheck emits systemd.services.omeka-themes-check — set -euo pipefail, greps theme:list per id, exit 1 with the missing names; pinned by TestRenderArchive_ThemesCheckIsLoudAndByName",
    "A site set to one of the ten still renders after a restart of the archive": "themes persist across restart (re-fetched each start) and the check never changes the site's theme; TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme pins archive-brand still creates the site on default",
    "Render tests cover the env line, the pinned versions and the check": "internal/clan/archive_test.go — TestRenderArchive_ThemesEnvIsPinned (env line + ten id:version specs), TestRenderArchive_ThemesCheckIsLoudAndByName, TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme",
    "docs/GOTCHAS.md gains an entry: the archive container is re-created on every start": "docs/GOTCHAS.md #356 — themes/modules added by hand do not last",
    "STATUS.md updated in the same commit": "STATUS.md — 2026-09-28 #1970 DONE milestone entry, commit 51b292295"
  },
  "summary": "The archive port ships ten version-pinned Omeka themes via OMEKA_THEMES and a loud omeka-themes-check that fails by name if any is missing.",
  "blockers": []
}
**close-report** for #1970 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 51b292295 is not a valid commit object (fabricated, or never pushed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits - changed_files: 'internal/clan/archive.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/archive_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1970, "status": "success", "commits": [ "51b292295" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/archive.go", "internal/clan/archive_test.go" ], "tests": [ { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "gofmt -l internal/clan/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/clan/", "exit_code": 0 } ], "criteria": { "The archive render sets OMEKA_THEMES to the ten pinned themes": "internal/clan/archive.go — omekaThemes list + omekaThemesEnv() renders the OMEKA_THEMES env line in renderOmekaContainers; pinned by TestRenderArchive_ThemesEnvIsPinned", "After a deploy, theme:list lists all ten plus default, and again after restart": "render mechanism — OMEKA_THEMES is re-fetched by the erseco entrypoint's theme:download on EVERY container start (survives restart/deploy/re-found, the same shape OMEKA_MODULES/Local Contexts uses, GOTCHAS #356); live drive deferred to clan-lab as with the port's other legs (unproven_by_seam)", "A listed theme that failed to download fails a named unit; not a silent gap": "renderOmekaThemesCheck emits systemd.services.omeka-themes-check — set -euo pipefail, greps theme:list per id, exit 1 with the missing names; pinned by TestRenderArchive_ThemesCheckIsLoudAndByName", "A site set to one of the ten still renders after a restart of the archive": "themes persist across restart (re-fetched each start) and the check never changes the site's theme; TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme pins archive-brand still creates the site on default", "Render tests cover the env line, the pinned versions and the check": "internal/clan/archive_test.go — TestRenderArchive_ThemesEnvIsPinned (env line + ten id:version specs), TestRenderArchive_ThemesCheckIsLoudAndByName, TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme", "docs/GOTCHAS.md gains an entry: the archive container is re-created on every start": "docs/GOTCHAS.md #356 — themes/modules added by hand do not last", "STATUS.md updated in the same commit": "STATUS.md — 2026-09-28 #1970 DONE milestone entry, commit 51b292295" }, "summary": "The archive port ships ten version-pinned Omeka themes via OMEKA_THEMES and a loud omeka-themes-check that fails by name if any is missing.", "blockers": [] } ``` </details>

close-report for #1970 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1970,
  "status": "success",
  "commits": [
    "51b29229bb12af8db2bd836146004f059a0cf299"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/archive.go",
    "internal/clan/archive_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The archive render sets OMEKA_THEMES to the ten pinned themes": "internal/clan/archive.go — omekaThemes list + omekaThemesEnv() renders the OMEKA_THEMES env line in renderOmekaContainers; pinned by TestRenderArchive_ThemesEnvIsPinned",
    "After a deploy, theme:list lists all ten plus default, and again after restart": "render mechanism — OMEKA_THEMES is re-fetched by the erseco entrypoint's theme:download on EVERY container start (survives restart/deploy/re-found, the same shape OMEKA_MODULES/Local Contexts uses, GOTCHAS #356); live drive deferred to clan-lab as with the port's other legs (unproven_by_seam)",
    "A listed theme that failed to download fails a named unit; not a silent gap": "renderOmekaThemesCheck emits systemd.services.omeka-themes-check — set -euo pipefail, greps theme:list per id, exit 1 with the missing names; pinned by TestRenderArchive_ThemesCheckIsLoudAndByName",
    "A site set to one of the ten still renders after a restart of the archive": "themes persist across restart (re-fetched each start) and the check never changes the site's theme; TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme pins archive-brand still creates the site on default",
    "Render tests cover the env line, the pinned versions and the check": "internal/clan/archive_test.go — TestRenderArchive_ThemesEnvIsPinned (env line + ten id:version specs), TestRenderArchive_ThemesCheckIsLoudAndByName, TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme",
    "docs/GOTCHAS.md gains an entry: the archive container is re-created on every start": "docs/GOTCHAS.md #356 — themes/modules added by hand do not last",
    "STATUS.md updated in the same commit": "STATUS.md — 2026-09-28 #1970 DONE milestone entry, commit 51b292295"
  },
  "summary": "The archive port ships ten version-pinned Omeka themes via OMEKA_THEMES and a loud omeka-themes-check that fails by name if any is missing.",
  "blockers": []
}
**close-report** for #1970 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1970, "status": "success", "commits": [ "51b29229bb12af8db2bd836146004f059a0cf299" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/archive.go", "internal/clan/archive_test.go" ], "tests": [ { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "gofmt -l internal/clan/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/clan/", "exit_code": 0 } ], "criteria": { "The archive render sets OMEKA_THEMES to the ten pinned themes": "internal/clan/archive.go — omekaThemes list + omekaThemesEnv() renders the OMEKA_THEMES env line in renderOmekaContainers; pinned by TestRenderArchive_ThemesEnvIsPinned", "After a deploy, theme:list lists all ten plus default, and again after restart": "render mechanism — OMEKA_THEMES is re-fetched by the erseco entrypoint's theme:download on EVERY container start (survives restart/deploy/re-found, the same shape OMEKA_MODULES/Local Contexts uses, GOTCHAS #356); live drive deferred to clan-lab as with the port's other legs (unproven_by_seam)", "A listed theme that failed to download fails a named unit; not a silent gap": "renderOmekaThemesCheck emits systemd.services.omeka-themes-check — set -euo pipefail, greps theme:list per id, exit 1 with the missing names; pinned by TestRenderArchive_ThemesCheckIsLoudAndByName", "A site set to one of the ten still renders after a restart of the archive": "themes persist across restart (re-fetched each start) and the check never changes the site's theme; TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme pins archive-brand still creates the site on default", "Render tests cover the env line, the pinned versions and the check": "internal/clan/archive_test.go — TestRenderArchive_ThemesEnvIsPinned (env line + ten id:version specs), TestRenderArchive_ThemesCheckIsLoudAndByName, TestRenderArchive_ThemesCheckDoesNotChangeSiteTheme", "docs/GOTCHAS.md gains an entry: the archive container is re-created on every start": "docs/GOTCHAS.md #356 — themes/modules added by hand do not last", "STATUS.md updated in the same commit": "STATUS.md — 2026-09-28 #1970 DONE milestone entry, commit 51b292295" }, "summary": "The archive port ships ten version-pinned Omeka themes via OMEKA_THEMES and a loud omeka-themes-check that fails by name if any is missing.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1970
No description provided.