From 7a4c39adf63088a2f2d3360808eb1d940742435c Mon Sep 17 00:00:00 2001 From: "F.D.Castel" Date: Sun, 15 Nov 2026 13:48:58 +0000 Subject: [PATCH 1/2] chore: stop building Debian bullseye images (issue #50) --- CONTRIBUTING.md | 4 +- DECISIONS.md | 8 +- README.md | 24 +- assets.json | 34 --- firebird-docker.build.ps1 | 2 +- generated/3.0.10/bullseye/Dockerfile | 142 ---------- generated/3.0.10/bullseye/entrypoint.sh | 357 ------------------------ generated/3.0.11/bullseye/Dockerfile | 142 ---------- generated/3.0.11/bullseye/entrypoint.sh | 357 ------------------------ generated/3.0.12/bullseye/Dockerfile | 142 ---------- generated/3.0.12/bullseye/entrypoint.sh | 357 ------------------------ generated/3.0.13/bullseye/Dockerfile | 142 ---------- generated/3.0.13/bullseye/entrypoint.sh | 357 ------------------------ generated/3.0.14/bullseye/Dockerfile | 142 ---------- generated/3.0.14/bullseye/entrypoint.sh | 357 ------------------------ generated/3.0.9/bullseye/Dockerfile | 142 ---------- generated/3.0.9/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.0/bullseye/Dockerfile | 142 ---------- generated/4.0.0/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.1/bullseye/Dockerfile | 142 ---------- generated/4.0.1/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.2/bullseye/Dockerfile | 142 ---------- generated/4.0.2/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.3/bullseye/Dockerfile | 142 ---------- generated/4.0.3/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.4/bullseye/Dockerfile | 142 ---------- generated/4.0.4/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.5/bullseye/Dockerfile | 142 ---------- generated/4.0.5/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.6/bullseye/Dockerfile | 142 ---------- generated/4.0.6/bullseye/entrypoint.sh | 357 ------------------------ generated/4.0.7/bullseye/Dockerfile | 142 ---------- generated/4.0.7/bullseye/entrypoint.sh | 357 ------------------------ generated/5.0.0/bullseye/Dockerfile | 146 ---------- generated/5.0.0/bullseye/entrypoint.sh | 357 ------------------------ generated/5.0.1/bullseye/Dockerfile | 146 ---------- generated/5.0.1/bullseye/entrypoint.sh | 357 ------------------------ generated/5.0.2/bullseye/Dockerfile | 146 ---------- generated/5.0.2/bullseye/entrypoint.sh | 357 ------------------------ generated/5.0.3/bullseye/Dockerfile | 146 ---------- generated/5.0.3/bullseye/entrypoint.sh | 357 ------------------------ generated/5.0.4/bullseye/Dockerfile | 146 ---------- generated/5.0.4/bullseye/entrypoint.sh | 357 ------------------------ src/README.md.template | 5 + src/tags.tests.ps1 | 6 +- 45 files changed, 23 insertions(+), 9561 deletions(-) delete mode 100644 generated/3.0.10/bullseye/Dockerfile delete mode 100644 generated/3.0.10/bullseye/entrypoint.sh delete mode 100644 generated/3.0.11/bullseye/Dockerfile delete mode 100644 generated/3.0.11/bullseye/entrypoint.sh delete mode 100644 generated/3.0.12/bullseye/Dockerfile delete mode 100644 generated/3.0.12/bullseye/entrypoint.sh delete mode 100644 generated/3.0.13/bullseye/Dockerfile delete mode 100644 generated/3.0.13/bullseye/entrypoint.sh delete mode 100644 generated/3.0.14/bullseye/Dockerfile delete mode 100644 generated/3.0.14/bullseye/entrypoint.sh delete mode 100644 generated/3.0.9/bullseye/Dockerfile delete mode 100644 generated/3.0.9/bullseye/entrypoint.sh delete mode 100644 generated/4.0.0/bullseye/Dockerfile delete mode 100644 generated/4.0.0/bullseye/entrypoint.sh delete mode 100644 generated/4.0.1/bullseye/Dockerfile delete mode 100644 generated/4.0.1/bullseye/entrypoint.sh delete mode 100644 generated/4.0.2/bullseye/Dockerfile delete mode 100644 generated/4.0.2/bullseye/entrypoint.sh delete mode 100644 generated/4.0.3/bullseye/Dockerfile delete mode 100644 generated/4.0.3/bullseye/entrypoint.sh delete mode 100644 generated/4.0.4/bullseye/Dockerfile delete mode 100644 generated/4.0.4/bullseye/entrypoint.sh delete mode 100644 generated/4.0.5/bullseye/Dockerfile delete mode 100644 generated/4.0.5/bullseye/entrypoint.sh delete mode 100644 generated/4.0.6/bullseye/Dockerfile delete mode 100644 generated/4.0.6/bullseye/entrypoint.sh delete mode 100644 generated/4.0.7/bullseye/Dockerfile delete mode 100644 generated/4.0.7/bullseye/entrypoint.sh delete mode 100644 generated/5.0.0/bullseye/Dockerfile delete mode 100644 generated/5.0.0/bullseye/entrypoint.sh delete mode 100644 generated/5.0.1/bullseye/Dockerfile delete mode 100644 generated/5.0.1/bullseye/entrypoint.sh delete mode 100644 generated/5.0.2/bullseye/Dockerfile delete mode 100644 generated/5.0.2/bullseye/entrypoint.sh delete mode 100644 generated/5.0.3/bullseye/Dockerfile delete mode 100644 generated/5.0.3/bullseye/entrypoint.sh delete mode 100644 generated/5.0.4/bullseye/Dockerfile delete mode 100644 generated/5.0.4/bullseye/entrypoint.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 43eadd0..ba000fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,8 +64,8 @@ Invoke-Build Test # Test only Firebird 4.x images Invoke-Build Test -VersionFilter "4" -# Test only bullseye images -Invoke-Build Test -DistributionFilter "bullseye" +# Test only bookworm images +Invoke-Build Test -DistributionFilter "bookworm" # Run a single test by name Invoke-Build Test -TestFilter "FIREBIRD_USER_can_create_user" diff --git a/DECISIONS.md b/DECISIONS.md index f05efb6..a7e67e9 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -80,7 +80,7 @@ Decisions made during the v2 rewrite, with rationale. **Decision:** The `defaultDistro` in `assets.json` is `trixie` (Debian 13). Bare tags (`5.0.4`, `5`, `latest`) resolve to the Trixie variant. -**Rationale:** Trixie is the current Debian stable — it ships newer library versions (libicu76, OpenSSL 3.x, glibc 2.41) that match what a fresh deployment would pull elsewhere. Bookworm remains available as `*-bookworm` tags for users who prefer the previous LTS for production stability. Users who want to pin should use the explicit `*-bookworm` or `*-bullseye` tags; the bare tags move forward with Debian stable. +**Rationale:** Trixie is the current Debian stable — it ships newer library versions (libicu76, OpenSSL 3.x, glibc 2.41) that match what a fresh deployment would pull elsewhere. Bookworm remains available as `*-bookworm` tags for users who prefer the previous LTS for production stability. Users who want to pin should use the explicit `*-bookworm` tags; the bare tags move forward with Debian stable. ## D-013: Digest-based multi-arch assembly @@ -121,3 +121,9 @@ Also adds `tzdata` to Noble's distro `extraPackages` (matching Jammy). FB3 relie **Decision:** The `update-repo` job in `publish-fork.yaml` only commits and pushes regenerated `generated/` and `README.md` when running on the fork's default branch (`github.event.repository.default_branch`). Dispatches on PR or feature branches still run `Invoke-Build Prepare` and `Invoke-Build Update-Readme` (so a template-substitution regression still fails the workflow) but skip the `git commit` / `git push`. Amends D-014 for the publish-fork case; `publish.yaml` (the official-repo publish) is unchanged. **Rationale:** `publish-fork.yaml` passes `-Registry 'ghcr.io/'` to `Update-Readme`, which substitutes the fork's registry into the README table header. The previous unguarded auto-commit pushed that fork-specific README back to whatever branch was dispatched, including branches with open upstream PRs — directly polluting the PR diff with content that must not land upstream, and breaking GitHub's linear rebase when the upstream master had its own concurrent `README.md` changes (observed during PR #43, which required a force-pushed clean rebase to unblock). Branch-gating preserves D-014's "generated/ tracked in git" invariant on the fork's default branch while keeping PR/feature branches diff-clean against upstream. Confines the `-Registry` rewrite to the only place the fork wants it (its own showcased README on `master`). + +## D-022: Bullseye images are no longer built + +**Decision:** Debian 11 `bullseye` is removed from `config.distros` in `assets.json`, so no `*-bullseye` image is built, tested or published, and its `generated/` folders are deleted. The `*-bullseye` tags already on Docker Hub are kept as they are (no deletion). The README lists bullseye under "Discontinued distributions" and points to `trixie` (default) or `bookworm`. + +**Rationale:** Debian 11 reached the end of its LTS period on 2026-08-31. Its packages are being moved off the main mirrors: the `bullseye-security` index on `deb.debian.org` still lists packages whose `.deb` files return 404, and `archive.debian.org` does not carry `bullseye-security` yet, so every bullseye build fails in `apt-get install`. Because the build stops at the first failed image, this also failed every CI run and hid the results of the other distributions. Even with working mirrors, new bullseye images would ship OpenSSL, curl and ICU without security updates. Deleting the published tags was rejected: it would break existing deployments that pin them, with no benefit. See [issue #50](https://github.com/FirebirdSQL/firebird-docker/issues/50). diff --git a/README.md b/README.md index afa59ea..3f246fd 100644 --- a/README.md +++ b/README.md @@ -20,97 +20,78 @@ Docker images for Firebird Database. |`firebirdsql/firebird`|Dockerfile| |:-|:-:| |`5.0.4-bookworm`, `5-bookworm`, `bookworm`|[Dockerfile](./generated/5.0.4/bookworm/Dockerfile)| -|`5.0.4-bullseye`, `5-bullseye`, `bullseye`|[Dockerfile](./generated/5.0.4/bullseye/Dockerfile)| |`5.0.4-jammy`, `5-jammy`, `jammy`|[Dockerfile](./generated/5.0.4/jammy/Dockerfile)| |`5.0.4-noble`, `5-noble`, `noble`|[Dockerfile](./generated/5.0.4/noble/Dockerfile)| |`5.0.4-trixie`, `5-trixie`, `trixie`, `5.0.4`, `5`, `latest`|[Dockerfile](./generated/5.0.4/trixie/Dockerfile)| |`5.0.3-bookworm`|[Dockerfile](./generated/5.0.3/bookworm/Dockerfile)| -|`5.0.3-bullseye`|[Dockerfile](./generated/5.0.3/bullseye/Dockerfile)| |`5.0.3-jammy`|[Dockerfile](./generated/5.0.3/jammy/Dockerfile)| |`5.0.3-noble`|[Dockerfile](./generated/5.0.3/noble/Dockerfile)| |`5.0.3-trixie`, `5.0.3`|[Dockerfile](./generated/5.0.3/trixie/Dockerfile)| |`5.0.2-bookworm`|[Dockerfile](./generated/5.0.2/bookworm/Dockerfile)| -|`5.0.2-bullseye`|[Dockerfile](./generated/5.0.2/bullseye/Dockerfile)| |`5.0.2-jammy`|[Dockerfile](./generated/5.0.2/jammy/Dockerfile)| |`5.0.2-noble`|[Dockerfile](./generated/5.0.2/noble/Dockerfile)| |`5.0.2-trixie`, `5.0.2`|[Dockerfile](./generated/5.0.2/trixie/Dockerfile)| |`5.0.1-bookworm`|[Dockerfile](./generated/5.0.1/bookworm/Dockerfile)| -|`5.0.1-bullseye`|[Dockerfile](./generated/5.0.1/bullseye/Dockerfile)| |`5.0.1-jammy`|[Dockerfile](./generated/5.0.1/jammy/Dockerfile)| |`5.0.1-noble`|[Dockerfile](./generated/5.0.1/noble/Dockerfile)| |`5.0.1-trixie`, `5.0.1`|[Dockerfile](./generated/5.0.1/trixie/Dockerfile)| |`5.0.0-bookworm`|[Dockerfile](./generated/5.0.0/bookworm/Dockerfile)| -|`5.0.0-bullseye`|[Dockerfile](./generated/5.0.0/bullseye/Dockerfile)| |`5.0.0-jammy`|[Dockerfile](./generated/5.0.0/jammy/Dockerfile)| |`5.0.0-noble`|[Dockerfile](./generated/5.0.0/noble/Dockerfile)| |`5.0.0-trixie`, `5.0.0`|[Dockerfile](./generated/5.0.0/trixie/Dockerfile)| |`4.0.7-bookworm`, `4-bookworm`|[Dockerfile](./generated/4.0.7/bookworm/Dockerfile)| -|`4.0.7-bullseye`, `4-bullseye`|[Dockerfile](./generated/4.0.7/bullseye/Dockerfile)| |`4.0.7-jammy`, `4-jammy`|[Dockerfile](./generated/4.0.7/jammy/Dockerfile)| |`4.0.7-noble`, `4-noble`|[Dockerfile](./generated/4.0.7/noble/Dockerfile)| |`4.0.7-trixie`, `4-trixie`, `4.0.7`, `4`|[Dockerfile](./generated/4.0.7/trixie/Dockerfile)| |`4.0.6-bookworm`|[Dockerfile](./generated/4.0.6/bookworm/Dockerfile)| -|`4.0.6-bullseye`|[Dockerfile](./generated/4.0.6/bullseye/Dockerfile)| |`4.0.6-jammy`|[Dockerfile](./generated/4.0.6/jammy/Dockerfile)| |`4.0.6-noble`|[Dockerfile](./generated/4.0.6/noble/Dockerfile)| |`4.0.6-trixie`, `4.0.6`|[Dockerfile](./generated/4.0.6/trixie/Dockerfile)| |`4.0.5-bookworm`|[Dockerfile](./generated/4.0.5/bookworm/Dockerfile)| -|`4.0.5-bullseye`|[Dockerfile](./generated/4.0.5/bullseye/Dockerfile)| |`4.0.5-jammy`|[Dockerfile](./generated/4.0.5/jammy/Dockerfile)| |`4.0.5-noble`|[Dockerfile](./generated/4.0.5/noble/Dockerfile)| |`4.0.5-trixie`, `4.0.5`|[Dockerfile](./generated/4.0.5/trixie/Dockerfile)| |`4.0.4-bookworm`|[Dockerfile](./generated/4.0.4/bookworm/Dockerfile)| -|`4.0.4-bullseye`|[Dockerfile](./generated/4.0.4/bullseye/Dockerfile)| |`4.0.4-jammy`|[Dockerfile](./generated/4.0.4/jammy/Dockerfile)| |`4.0.4-noble`|[Dockerfile](./generated/4.0.4/noble/Dockerfile)| |`4.0.4-trixie`, `4.0.4`|[Dockerfile](./generated/4.0.4/trixie/Dockerfile)| |`4.0.3-bookworm`|[Dockerfile](./generated/4.0.3/bookworm/Dockerfile)| -|`4.0.3-bullseye`|[Dockerfile](./generated/4.0.3/bullseye/Dockerfile)| |`4.0.3-jammy`|[Dockerfile](./generated/4.0.3/jammy/Dockerfile)| |`4.0.3-noble`|[Dockerfile](./generated/4.0.3/noble/Dockerfile)| |`4.0.3-trixie`, `4.0.3`|[Dockerfile](./generated/4.0.3/trixie/Dockerfile)| |`4.0.2-bookworm`|[Dockerfile](./generated/4.0.2/bookworm/Dockerfile)| -|`4.0.2-bullseye`|[Dockerfile](./generated/4.0.2/bullseye/Dockerfile)| |`4.0.2-jammy`|[Dockerfile](./generated/4.0.2/jammy/Dockerfile)| |`4.0.2-noble`|[Dockerfile](./generated/4.0.2/noble/Dockerfile)| |`4.0.2-trixie`, `4.0.2`|[Dockerfile](./generated/4.0.2/trixie/Dockerfile)| |`4.0.1-bookworm`|[Dockerfile](./generated/4.0.1/bookworm/Dockerfile)| -|`4.0.1-bullseye`|[Dockerfile](./generated/4.0.1/bullseye/Dockerfile)| |`4.0.1-jammy`|[Dockerfile](./generated/4.0.1/jammy/Dockerfile)| |`4.0.1-noble`|[Dockerfile](./generated/4.0.1/noble/Dockerfile)| |`4.0.1-trixie`, `4.0.1`|[Dockerfile](./generated/4.0.1/trixie/Dockerfile)| |`4.0.0-bookworm`|[Dockerfile](./generated/4.0.0/bookworm/Dockerfile)| -|`4.0.0-bullseye`|[Dockerfile](./generated/4.0.0/bullseye/Dockerfile)| |`4.0.0-jammy`|[Dockerfile](./generated/4.0.0/jammy/Dockerfile)| |`4.0.0-noble`|[Dockerfile](./generated/4.0.0/noble/Dockerfile)| |`4.0.0-trixie`, `4.0.0`|[Dockerfile](./generated/4.0.0/trixie/Dockerfile)| |`3.0.14-bookworm`, `3-bookworm`|[Dockerfile](./generated/3.0.14/bookworm/Dockerfile)| -|`3.0.14-bullseye`, `3-bullseye`|[Dockerfile](./generated/3.0.14/bullseye/Dockerfile)| |`3.0.14-jammy`, `3-jammy`|[Dockerfile](./generated/3.0.14/jammy/Dockerfile)| |`3.0.14-noble`, `3-noble`|[Dockerfile](./generated/3.0.14/noble/Dockerfile)| |`3.0.14-trixie`, `3-trixie`, `3.0.14`, `3`|[Dockerfile](./generated/3.0.14/trixie/Dockerfile)| |`3.0.13-bookworm`|[Dockerfile](./generated/3.0.13/bookworm/Dockerfile)| -|`3.0.13-bullseye`|[Dockerfile](./generated/3.0.13/bullseye/Dockerfile)| |`3.0.13-jammy`|[Dockerfile](./generated/3.0.13/jammy/Dockerfile)| |`3.0.13-noble`|[Dockerfile](./generated/3.0.13/noble/Dockerfile)| |`3.0.13-trixie`, `3.0.13`|[Dockerfile](./generated/3.0.13/trixie/Dockerfile)| |`3.0.12-bookworm`|[Dockerfile](./generated/3.0.12/bookworm/Dockerfile)| -|`3.0.12-bullseye`|[Dockerfile](./generated/3.0.12/bullseye/Dockerfile)| |`3.0.12-jammy`|[Dockerfile](./generated/3.0.12/jammy/Dockerfile)| |`3.0.12-noble`|[Dockerfile](./generated/3.0.12/noble/Dockerfile)| |`3.0.12-trixie`, `3.0.12`|[Dockerfile](./generated/3.0.12/trixie/Dockerfile)| |`3.0.11-bookworm`|[Dockerfile](./generated/3.0.11/bookworm/Dockerfile)| -|`3.0.11-bullseye`|[Dockerfile](./generated/3.0.11/bullseye/Dockerfile)| |`3.0.11-jammy`|[Dockerfile](./generated/3.0.11/jammy/Dockerfile)| |`3.0.11-noble`|[Dockerfile](./generated/3.0.11/noble/Dockerfile)| |`3.0.11-trixie`, `3.0.11`|[Dockerfile](./generated/3.0.11/trixie/Dockerfile)| |`3.0.10-bookworm`|[Dockerfile](./generated/3.0.10/bookworm/Dockerfile)| -|`3.0.10-bullseye`|[Dockerfile](./generated/3.0.10/bullseye/Dockerfile)| |`3.0.10-jammy`|[Dockerfile](./generated/3.0.10/jammy/Dockerfile)| |`3.0.10-noble`|[Dockerfile](./generated/3.0.10/noble/Dockerfile)| |`3.0.10-trixie`, `3.0.10`|[Dockerfile](./generated/3.0.10/trixie/Dockerfile)| |`3.0.9-bookworm`|[Dockerfile](./generated/3.0.9/bookworm/Dockerfile)| -|`3.0.9-bullseye`|[Dockerfile](./generated/3.0.9/bullseye/Dockerfile)| |`3.0.9-jammy`|[Dockerfile](./generated/3.0.9/jammy/Dockerfile)| |`3.0.9-noble`|[Dockerfile](./generated/3.0.9/noble/Dockerfile)| |`3.0.9-trixie`, `3.0.9`|[Dockerfile](./generated/3.0.9/trixie/Dockerfile)| @@ -142,6 +123,11 @@ docker pull firebirdsql/firebird:5-snapshot Images for Firebird 5.x and later are available for both `linux/amd64` and `linux/arm64`. Firebird 3.x and 4.x images are `linux/amd64` only. +## Discontinued distributions + +Debian 11 `bullseye` images (`*-bullseye` tags) are no longer built, because Debian 11 reached its end of life. The tags already published remain available, but they will not receive any updates, including security fixes. Please move to `trixie` (the default) or `bookworm`. + + # How to use this image diff --git a/assets.json b/assets.json index 752d1b5..1b15aee 100644 --- a/assets.json +++ b/assets.json @@ -7,11 +7,6 @@ "icuPackage": "libicu72", "extraPackages": "" }, - "bullseye": { - "baseImage": "debian:bullseye-slim", - "icuPackage": "libicu67", - "extraPackages": "" - }, "jammy": { "baseImage": "ubuntu:jammy", "icuPackage": "libicu70", @@ -49,11 +44,6 @@ "5-bookworm", "bookworm" ], - "bullseye": [ - "5.0.4-bullseye", - "5-bullseye", - "bullseye" - ], "jammy": [ "5.0.4-jammy", "5-jammy", @@ -88,7 +78,6 @@ }, "tags": { "bookworm": "5.0.3-bookworm", - "bullseye": "5.0.3-bullseye", "jammy": "5.0.3-jammy", "noble": "5.0.3-noble", "trixie": [ @@ -111,7 +100,6 @@ }, "tags": { "bookworm": "5.0.2-bookworm", - "bullseye": "5.0.2-bullseye", "jammy": "5.0.2-jammy", "noble": "5.0.2-noble", "trixie": [ @@ -134,7 +122,6 @@ }, "tags": { "bookworm": "5.0.1-bookworm", - "bullseye": "5.0.1-bullseye", "jammy": "5.0.1-jammy", "noble": "5.0.1-noble", "trixie": [ @@ -157,7 +144,6 @@ }, "tags": { "bookworm": "5.0.0-bookworm", - "bullseye": "5.0.0-bullseye", "jammy": "5.0.0-jammy", "noble": "5.0.0-noble", "trixie": [ @@ -179,10 +165,6 @@ "4.0.7-bookworm", "4-bookworm" ], - "bullseye": [ - "4.0.7-bullseye", - "4-bullseye" - ], "jammy": [ "4.0.7-jammy", "4-jammy" @@ -209,7 +191,6 @@ }, "tags": { "bookworm": "4.0.6-bookworm", - "bullseye": "4.0.6-bullseye", "jammy": "4.0.6-jammy", "noble": "4.0.6-noble", "trixie": [ @@ -228,7 +209,6 @@ }, "tags": { "bookworm": "4.0.5-bookworm", - "bullseye": "4.0.5-bullseye", "jammy": "4.0.5-jammy", "noble": "4.0.5-noble", "trixie": [ @@ -247,7 +227,6 @@ }, "tags": { "bookworm": "4.0.4-bookworm", - "bullseye": "4.0.4-bullseye", "jammy": "4.0.4-jammy", "noble": "4.0.4-noble", "trixie": [ @@ -266,7 +245,6 @@ }, "tags": { "bookworm": "4.0.3-bookworm", - "bullseye": "4.0.3-bullseye", "jammy": "4.0.3-jammy", "noble": "4.0.3-noble", "trixie": [ @@ -285,7 +263,6 @@ }, "tags": { "bookworm": "4.0.2-bookworm", - "bullseye": "4.0.2-bullseye", "jammy": "4.0.2-jammy", "noble": "4.0.2-noble", "trixie": [ @@ -304,7 +281,6 @@ }, "tags": { "bookworm": "4.0.1-bookworm", - "bullseye": "4.0.1-bullseye", "jammy": "4.0.1-jammy", "noble": "4.0.1-noble", "trixie": [ @@ -323,7 +299,6 @@ }, "tags": { "bookworm": "4.0.0-bookworm", - "bullseye": "4.0.0-bullseye", "jammy": "4.0.0-jammy", "noble": "4.0.0-noble", "trixie": [ @@ -345,10 +320,6 @@ "3.0.14-bookworm", "3-bookworm" ], - "bullseye": [ - "3.0.14-bullseye", - "3-bullseye" - ], "jammy": [ "3.0.14-jammy", "3-jammy" @@ -375,7 +346,6 @@ }, "tags": { "bookworm": "3.0.13-bookworm", - "bullseye": "3.0.13-bullseye", "jammy": "3.0.13-jammy", "noble": "3.0.13-noble", "trixie": [ @@ -394,7 +364,6 @@ }, "tags": { "bookworm": "3.0.12-bookworm", - "bullseye": "3.0.12-bullseye", "jammy": "3.0.12-jammy", "noble": "3.0.12-noble", "trixie": [ @@ -413,7 +382,6 @@ }, "tags": { "bookworm": "3.0.11-bookworm", - "bullseye": "3.0.11-bullseye", "jammy": "3.0.11-jammy", "noble": "3.0.11-noble", "trixie": [ @@ -432,7 +400,6 @@ }, "tags": { "bookworm": "3.0.10-bookworm", - "bullseye": "3.0.10-bullseye", "jammy": "3.0.10-jammy", "noble": "3.0.10-noble", "trixie": [ @@ -451,7 +418,6 @@ }, "tags": { "bookworm": "3.0.9-bookworm", - "bullseye": "3.0.9-bullseye", "jammy": "3.0.9-jammy", "noble": "3.0.9-noble", "trixie": [ diff --git a/firebird-docker.build.ps1 b/firebird-docker.build.ps1 index 79413ca..bbf348a 100644 --- a/firebird-docker.build.ps1 +++ b/firebird-docker.build.ps1 @@ -1,6 +1,6 @@ param( [string]$VersionFilter, # Filter by version (e.g. '3', '4.0', '5.0.2'). - [string]$DistributionFilter, # Filter by image distribution (e.g. 'bookworm', 'bullseye', 'jammy'). + [string]$DistributionFilter, # Filter by image distribution (e.g. 'bookworm', 'trixie', 'jammy'). [switch]$LatestPerMajor, # Build/test only the latest release of each major Firebird version. [string]$TestFilter, # Filter by test name (e.g., 'FIREBIRD_USER_can_create_user'). Used only in the 'Test' task. diff --git a/generated/3.0.10/bullseye/Dockerfile b/generated/3.0.10/bullseye/Dockerfile deleted file mode 100644 index 923d45e..0000000 --- a/generated/3.0.10/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.10 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.10/Firebird-3.0.10.33601-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='5e0db3b9312c5bed3eccd1855ec07df5a50176dbff35b8ebf998360b59561cf0'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.10/bullseye/entrypoint.sh b/generated/3.0.10/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.10/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/3.0.11/bullseye/Dockerfile b/generated/3.0.11/bullseye/Dockerfile deleted file mode 100644 index 0f4a13c..0000000 --- a/generated/3.0.11/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.11 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.11/Firebird-3.0.11.33703-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='713757e09b40b2631d800dacd9b80179b7eb75693a72089136055a7154413a3e'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.11/bullseye/entrypoint.sh b/generated/3.0.11/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.11/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/3.0.12/bullseye/Dockerfile b/generated/3.0.12/bullseye/Dockerfile deleted file mode 100644 index 8cca737..0000000 --- a/generated/3.0.12/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.12 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.12/Firebird-3.0.12.33787-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='406a8887ab318a5d8a20781fc1d38a0ca30acdbddbc1558b077646bb2e2e283f'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.12/bullseye/entrypoint.sh b/generated/3.0.12/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.12/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/3.0.13/bullseye/Dockerfile b/generated/3.0.13/bullseye/Dockerfile deleted file mode 100644 index 6a33d34..0000000 --- a/generated/3.0.13/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.13 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.13/Firebird-3.0.13.33818-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='677e19d6308869d5dd0836a342157c7bd1e4b5a873aa385832da01d81db444dd'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.13/bullseye/entrypoint.sh b/generated/3.0.13/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.13/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/3.0.14/bullseye/Dockerfile b/generated/3.0.14/bullseye/Dockerfile deleted file mode 100644 index 4779946..0000000 --- a/generated/3.0.14/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.14 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.14/Firebird-3.0.14.33856-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='d6fedba1108a46cea2b5f753674046fff0e43c6af27ba01657511635cbc9670f'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.14/bullseye/entrypoint.sh b/generated/3.0.14/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.14/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/3.0.9/bullseye/Dockerfile b/generated/3.0.9/bullseye/Dockerfile deleted file mode 100644 index 8c9760f..0000000 --- a/generated/3.0.9/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=3.0.9 -ENV FIREBIRD_MAJOR=3 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v3.0.9/Firebird-3.0.9.33560-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='0a80a5dc507f388e96adf9b64584c0b568d94a8f3df19d7baec494c5f98ba5a4'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/3.0.9/bullseye/entrypoint.sh b/generated/3.0.9/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/3.0.9/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.0/bullseye/Dockerfile b/generated/4.0.0/bullseye/Dockerfile deleted file mode 100644 index e46610c..0000000 --- a/generated/4.0.0/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.0 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.0/Firebird-4.0.0.2496-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='06f6e00b9657a1967f21b34bea8150d5a3e5b1d1b1313bb6455e16878b42d63e'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.0/bullseye/entrypoint.sh b/generated/4.0.0/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.0/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.1/bullseye/Dockerfile b/generated/4.0.1/bullseye/Dockerfile deleted file mode 100644 index d685b6c..0000000 --- a/generated/4.0.1/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.1 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.1/Firebird-4.0.1.2692-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='90b6727b8366b3674fc30ba13d0f52ab0b419c3bb3a4224c8d3f480143538998'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.1/bullseye/entrypoint.sh b/generated/4.0.1/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.1/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.2/bullseye/Dockerfile b/generated/4.0.2/bullseye/Dockerfile deleted file mode 100644 index ffec909..0000000 --- a/generated/4.0.2/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.2 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.2/Firebird-4.0.2.2816-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='70108f9854a522ac6eb7b2bdc1bda9780aab97dbfbf358ced90c0db13b8af9fa'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.2/bullseye/entrypoint.sh b/generated/4.0.2/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.2/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.3/bullseye/Dockerfile b/generated/4.0.3/bullseye/Dockerfile deleted file mode 100644 index 03484db..0000000 --- a/generated/4.0.3/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.3 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.3/Firebird-4.0.3.2975-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='bd439c3c8f74fd03a592eafd20de37ce028c424fbe023352f1bd17db54c3257d'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.3/bullseye/entrypoint.sh b/generated/4.0.3/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.3/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.4/bullseye/Dockerfile b/generated/4.0.4/bullseye/Dockerfile deleted file mode 100644 index 84ca99f..0000000 --- a/generated/4.0.4/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.4 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.4/Firebird-4.0.4.3010-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='ef589301c5e13a1f8481e1e38c453641ef5082344bf69edb51f8aa9f036bcaca'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.4/bullseye/entrypoint.sh b/generated/4.0.4/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.4/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.5/bullseye/Dockerfile b/generated/4.0.5/bullseye/Dockerfile deleted file mode 100644 index fa82a48..0000000 --- a/generated/4.0.5/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.5 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.5/Firebird-4.0.5.3140-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='6ae43e4fa31ddc99220575023b7d954fb218c063375bb589b16fbe9fcdfdcaa6'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.5/bullseye/entrypoint.sh b/generated/4.0.5/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.5/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.6/bullseye/Dockerfile b/generated/4.0.6/bullseye/Dockerfile deleted file mode 100644 index 733b01b..0000000 --- a/generated/4.0.6/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.6 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.6/Firebird-4.0.6.3221-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='6ff5f672e10ee38ec5fc5394012ac83fe19872543dd2fefa249c1ccf62bc0075'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.6/bullseye/entrypoint.sh b/generated/4.0.6/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.6/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/4.0.7/bullseye/Dockerfile b/generated/4.0.7/bullseye/Dockerfile deleted file mode 100644 index d490cad..0000000 --- a/generated/4.0.7/bullseye/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=4.0.7 -ENV FIREBIRD_MAJOR=4 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v4.0.7/Firebird-4.0.7.3271-0.amd64.tar.gz'; \ - FIREBIRD_SHA256='d2964dfb190d7b0ec57271b53e6539f715ecc119f1cb8cd10339662eed9a7dea'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/4.0.7/bullseye/entrypoint.sh b/generated/4.0.7/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/4.0.7/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/5.0.0/bullseye/Dockerfile b/generated/5.0.0/bullseye/Dockerfile deleted file mode 100644 index a9fcc69..0000000 --- a/generated/5.0.0/bullseye/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=5.0.0 -ENV FIREBIRD_MAJOR=5 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0/Firebird-5.0.0.1306-0-linux-x64.tar.gz'; \ - FIREBIRD_SHA256='137b356ea464e224b6ed1241e6dba95b6b950ff1feef91696d4071d4da880768'; \ - ;; \ - arm64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0/Firebird-5.0.0.1306-0-linux-arm64.tar.gz'; \ - FIREBIRD_SHA256='bdb62abc91a4c26a86b9377256529622e3046f4ec4f66fbdcf46747688d45033'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/5.0.0/bullseye/entrypoint.sh b/generated/5.0.0/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/5.0.0/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/5.0.1/bullseye/Dockerfile b/generated/5.0.1/bullseye/Dockerfile deleted file mode 100644 index 9eb494c..0000000 --- a/generated/5.0.1/bullseye/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=5.0.1 -ENV FIREBIRD_MAJOR=5 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.1/Firebird-5.0.1.1469-0-linux-x64.tar.gz'; \ - FIREBIRD_SHA256='e1023b005e5d6db8f717af032e91f0f94aa7a8dbe0e78f250931214ca0a21e57'; \ - ;; \ - arm64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.1/Firebird-5.0.1.1469-0-linux-arm64.tar.gz'; \ - FIREBIRD_SHA256='46b3f4f170458a93365c67118c062ba8509903fe8293bf8a62e7bd8a388e2d06'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/5.0.1/bullseye/entrypoint.sh b/generated/5.0.1/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/5.0.1/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/5.0.2/bullseye/Dockerfile b/generated/5.0.2/bullseye/Dockerfile deleted file mode 100644 index 0de59be..0000000 --- a/generated/5.0.2/bullseye/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=5.0.2 -ENV FIREBIRD_MAJOR=5 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.2/Firebird-5.0.2.1613-0-linux-x64.tar.gz'; \ - FIREBIRD_SHA256='23d6e0522f32fb13c288f67c98105014c3186ecf3f930f96ca9af1897b9565bf'; \ - ;; \ - arm64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.2/Firebird-5.0.2.1613-0-linux-arm64.tar.gz'; \ - FIREBIRD_SHA256='216edb3594d3318690bd3f2ae9979a9a52efb512eb1bf799c0bace50106a0a69'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/5.0.2/bullseye/entrypoint.sh b/generated/5.0.2/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/5.0.2/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/5.0.3/bullseye/Dockerfile b/generated/5.0.3/bullseye/Dockerfile deleted file mode 100644 index c397c41..0000000 --- a/generated/5.0.3/bullseye/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=5.0.3 -ENV FIREBIRD_MAJOR=5 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.3/Firebird-5.0.3.1683-0-linux-x64.tar.gz'; \ - FIREBIRD_SHA256='ef281c53f85756288151a86831375c9ae668caaeccd1b18103d523ba8f444779'; \ - ;; \ - arm64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.3/Firebird-5.0.3.1683-0-linux-arm64.tar.gz'; \ - FIREBIRD_SHA256='e375341466e625bf17e4416723c1465a646d44903011ac4b89f84afe1df3633e'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/5.0.3/bullseye/entrypoint.sh b/generated/5.0.3/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/5.0.3/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/generated/5.0.4/bullseye/Dockerfile b/generated/5.0.4/bullseye/Dockerfile deleted file mode 100644 index 3e63ebe..0000000 --- a/generated/5.0.4/bullseye/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -# -# This file was auto-generated. Do not edit. See /src. -# - -# Best practices for Dockerfile instructions -# https://docs.docker.com/develop/develop-images/instructions/ - -FROM debian:bullseye-slim - -ENV LANG=C.UTF-8 -ENV LC_ALL=C.UTF-8 - -ENV FIREBIRD_VERSION=5.0.4 -ENV FIREBIRD_MAJOR=5 - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -x Print commands and their arguments as they are executed. - -# Prerequisites -RUN set -eux; \ - apt-get update; \ - # Install prerequisites + tini + curl/ca-certificates for download - apt-get install -y --no-install-recommends \ - libatomic1 \ - libicu67 \ - libncurses6 \ - libtomcrypt1 \ - libtommath1 \ - netbase \ - procps \ - tini \ - ca-certificates \ - curl; \ - \ - # Download - ARCH=$(dpkg --print-architecture); \ - case "$ARCH" in \ - amd64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.4/Firebird-5.0.4.1812-0-linux-x64.tar.gz'; \ - FIREBIRD_SHA256='ab6a15a0258f38b022be496bb5e038c14e8628ce9acd0f9a06288a3baedd917b'; \ - ;; \ - arm64) \ - FIREBIRD_URL='https://github.com/FirebirdSQL/firebird/releases/download/v5.0.4/Firebird-5.0.4.1812-0-linux-arm64.tar.gz'; \ - FIREBIRD_SHA256='1a3eb3d46b82e96c784800aeec37287d4c47acec4d8caed6c7897beb4ff6cee0'; \ - ;; \ - *) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \ - esac; \ - mkdir -p /tmp/firebird_install; \ - echo "Downloading Firebird from $FIREBIRD_URL"; \ - curl -fSL "$FIREBIRD_URL" -o /tmp/firebird_install/firebird-bundle.tar.gz; \ - echo "Verifying checksum: $FIREBIRD_SHA256 for downloaded file"; \ - echo "$FIREBIRD_SHA256 /tmp/firebird_install/firebird-bundle.tar.gz" | sha256sum -c -; \ - \ - # Extract, install, clean - cd /tmp/firebird_install; \ - tar --extract --file=firebird-bundle.tar.gz --gunzip --verbose --strip-components=1; \ - ./install.sh -silent; \ - rm -rf /tmp/firebird_install; \ - # Remove unnecessary files - rm -rf /opt/firebird/doc \ - /opt/firebird/examples \ - /opt/firebird/help \ - /opt/firebird/include; \ - # Remove 'employee' sample database from 'databases.conf' - sed -i '/^employee/d' /opt/firebird/databases.conf; \ - \ - # Clean up temporary packages (curl, ca-certificates) and apt lists - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -# Fix libtommath for FB 3.0 -- https://github.com/FirebirdSQL/firebird/issues/5716#issuecomment-826239174 -RUN set -eux; \ - ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || echo "$(uname -m)-linux-gnu"); \ - [ $FIREBIRD_MAJOR -eq 3 ] && ln -sf /usr/lib/$ARCH/libtommath.so.1 /usr/lib/$ARCH/libtommath.so.0 || true - -# FB 3.0 needs libncurses5/libtinfo5. On Debian Trixie and Ubuntu Noble those -# packages were dropped from apt; pull them from the previous release pool. -# See DECISIONS.md D-017 and https://github.com/FirebirdSQL/firebird-docker/issues/42 -RUN set -eux; \ - if [ "$FIREBIRD_MAJOR" = "3" ]; then \ - . /etc/os-release; \ - case "$ID-$VERSION_CODENAME" in \ - debian-bookworm|debian-bullseye|ubuntu-jammy) \ - apt-get update; \ - apt-get install -y --no-install-recommends libtinfo5 libncurses5; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - debian-trixie) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb; \ - curl -fSL -O http://deb.debian.org/debian/pool/main/n/ncurses/libncurses5_6.4-4_amd64.deb; \ - dpkg -i libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - rm -f libtinfo5_6.4-4_amd64.deb libncurses5_6.4-4_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - ubuntu-noble) \ - apt-get update; \ - apt-get install -y --no-install-recommends ca-certificates curl; \ - cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - apt-get purge -y --auto-remove curl ca-certificates; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* \ - ;; \ - *) \ - echo "FB3: no libncurses5 provisioning path for $ID-$VERSION_CODENAME" >&2; \ - exit 1 \ - ;; \ - esac; \ - fi - -# System path -ENV PATH=/opt/firebird/bin:$PATH - -# Data directory -ENV FIREBIRD_DATA=/var/lib/firebird/data -RUN set -eux; \ - mkdir -p "$FIREBIRD_DATA"; \ - chown -R firebird:firebird "$FIREBIRD_DATA"; \ - chmod 755 "$FIREBIRD_DATA" -VOLUME $FIREBIRD_DATA - -# Entrypoint -COPY entrypoint.sh /usr/local/bin/ -RUN set -eux; \ - chmod +x /usr/local/bin/entrypoint.sh -ENTRYPOINT ["tini", "--", "entrypoint.sh"] - -STOPSIGNAL SIGTERM -EXPOSE 3050/tcp - -# Fix terminfo location -ENV TERMINFO=/lib/terminfo/ - -CMD ["firebird"] - diff --git a/generated/5.0.4/bullseye/entrypoint.sh b/generated/5.0.4/bullseye/entrypoint.sh deleted file mode 100644 index 21a0cfa..0000000 --- a/generated/5.0.4/bullseye/entrypoint.sh +++ /dev/null @@ -1,357 +0,0 @@ -#!/usr/bin/env bash - -# -# Docker entrypoint for firebird-docker images. -# -# Based on works of Jacob Alberty and The PostgreSQL Development Group. -# - -# -# About the [Tabs ahead] marker: -# Some sections of this file use tabs for better readability. -# When using bash here strings the - option suppresses leading tabs but not spaces. -# - - - -# https://linuxcommand.org/lc3_man_pages/seth.html -# -E If set, the ERR trap is inherited by shell functions. -# -e Exit immediately if a command exits with a non-zero status. -# -u Treat unset variables as an error when substituting -# -o Set the variable corresponding to option-name: -# pipefail the return value of a pipeline is the status of -# the last command to exit with a non-zero status, -# or zero if no command exited with a non-zero status -set -Eeuo pipefail - -# usage: read_from_file_or_env VAR [DEFAULT] -# ie: read_from_file_or_env 'DB_PASSWORD' 'example' -# If $(VAR)_FILE var is set, sets VAR value from file contents. Otherwise, uses DEFAULT value if VAR is not set. -read_from_file_or_env() { - local var="$1" - local fileVar="${var}_FILE" - if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: Both $var and $fileVar are set. - - Variables $var and $fileVar are mutually exclusive. Remove either one. - ----- - EOL - exit 1 - fi - - local def="${2:-}" - local val="$def" - if [ "${!var:-}" ]; then - val="${!var}" - elif [ "${!fileVar:-}" ]; then - val="$(< "${!fileVar}")" - fi - - export "$var"="$val" - unset "$fileVar" -} - -# usage: escape_sql_string STR -# ie: escape_sql_string "it's_me" -# Escapes single quotes for safe SQL interpolation. -escape_sql_string() { - printf '%s' "${1//\'/\'\'}" -} - -# usage: quote_sql_identifier NAME -# ie: quote_sql_identifier 'dba.backend' -# Quotes NAME as a SQL identifier when needed. -# Regular identifiers are returned unchanged (Firebird treats them as case-insensitive). -# Values already wrapped in double quotes are returned verbatim. -# Anything else is returned as a delimited (double-quoted, case-sensitive) identifier. -quote_sql_identifier() { - local value="$1" - local regular_identifier='^[A-Za-z][A-Za-z0-9_$]*$' - if [[ "$value" =~ $regular_identifier ]]; then - printf '%s' "$value" - elif [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - printf '%s' "$value" - else - printf '"%s"' "${value//\"/\"\"}" - fi -} - -# usage: unquote_sql_identifier NAME -# ie: unquote_sql_identifier '"dba.backend"' -# Removes the double quotes of a delimited identifier. Other values are returned unchanged. -unquote_sql_identifier() { - local value="$1" - if [ "${#value}" -ge 2 ] && [ "${value:0:1}" = '"' ] && [ "${value: -1}" = '"' ]; then - value="${value:1:-1}" - value="${value//\"\"/\"}" - fi - printf '%s' "$value" -} - -# usage: firebird_config_set KEY VALUE -# ie: firebird_config_set 'WireCrypt' 'Enabled' -# Set configuration key KEY to VALUE in 'firebird.conf' -firebird_config_set() { - # Uncomment line - sed -i "s/^#${1}/${1}/g" /opt/firebird/firebird.conf - - # Set KEY to VALUE - sed -i "s~^\(${1}\s*=\s*\).*$~\1${2}~" /opt/firebird/firebird.conf -} - -# Indent multi-line string -- https://stackoverflow.com/a/29779745 -indent() { - sed 's/^/ /'; -} - -# Set Firebird configuration parameters from environment variables. -set_config() { - read_from_file_or_env 'FIREBIRD_USE_LEGACY_AUTH' - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - echo 'Using Legacy_Auth.' - - # Firebird 4+: Uses 'Srp256' before 'Srp'. - local srp256='' - [ "$FIREBIRD_MAJOR" -ge "4" ] && srp256='Srp256, ' - - # Adds Legacy_Auth and Legacy_UserManager as first options. - firebird_config_set AuthServer "Legacy_Auth, ${srp256}Srp" - firebird_config_set AuthClient "Legacy_Auth, ${srp256}Srp" - firebird_config_set UserManager 'Legacy_UserManager, Srp' - - # Default setting is 'Required'. Reduces it to 'Enabled'. - firebird_config_set WireCrypt 'Enabled' - fi - - # FIREBIRD_CONF_* variables: set key in 'firebird.conf' - local v - for v in $(compgen -A variable | grep 'FIREBIRD_CONF_'); do - local key=${v/FIREBIRD_CONF_/} - firebird_config_set "$key" "${!v}" - done - - # Output changed settings - local changed_settings - changed_settings=$(grep -o '^[^#]*' /opt/firebird/firebird.conf) || true - if [ -n "$changed_settings" ]; then - echo "Using settings:" - echo "$changed_settings" | indent - fi -} - -# Changes SYSDBA password if FIREBIRD_ROOT_PASSWORD variable is set. -set_sysdba() { - read_from_file_or_env 'FIREBIRD_ROOT_PASSWORD' - if [ -n "$FIREBIRD_ROOT_PASSWORD" ]; then - echo 'Changing SYSDBA password.' - - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_ROOT_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Srp; - EXIT; - EOL - - if [ "$FIREBIRD_USE_LEGACY_AUTH" == 'true' ]; then - # [Tabs ahead] - /opt/firebird/bin/isql -b -user SYSDBA security.db <<-EOL - CREATE OR ALTER USER SYSDBA - PASSWORD '${escaped_password}' - USING PLUGIN Legacy_UserManager; - EXIT; - EOL - fi - - rm -rf /opt/firebird/SYSDBA.password - fi -} - -# Requires FIREBIRD_PASSWORD if FIREBIRD_USER is set. -requires_user_password() { - if [ -n "$FIREBIRD_USER" ] && [ -z "$FIREBIRD_PASSWORD" ]; then - # [Tabs ahead] - cat >&2 <<-EOL - ----- - ERROR: FIREBIRD_PASSWORD variable is not set. - - When using FIREBIRD_USER you must also set FIREBIRD_PASSWORD variable. - ----- - EOL - exit 1 - fi -} - -# Create Firebird user. -create_user() { - read_from_file_or_env 'FIREBIRD_USER' - read_from_file_or_env 'FIREBIRD_PASSWORD' - - if [ -n "$FIREBIRD_USER" ]; then - requires_user_password - echo "Creating user '$FIREBIRD_USER'..." - - local quoted_user - quoted_user=$(quote_sql_identifier "$FIREBIRD_USER") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - - # [Tabs ahead] - /opt/firebird/bin/isql -b security.db <<-EOL - CREATE OR ALTER USER ${quoted_user} - PASSWORD '${escaped_password}' - GRANT ADMIN ROLE; - EXIT; - EOL - fi -} - -# Run isql -process_sql() { - local isql_command=( /opt/firebird/bin/isql -b ) - - if [ -n "$FIREBIRD_USER" ]; then - # Pass the effective (unquoted) username: this local (embedded) connection skips - # authentication, and the server then normalizes the name exactly like it - # normalized the database owner name, so DDL permissions work in init scripts. - isql_command+=( -u "$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")")" -p "$FIREBIRD_PASSWORD" ) - fi - - if [ -n "$FIREBIRD_DATABASE" ]; then - isql_command+=( "$FIREBIRD_DATABASE" ) - fi - - "${isql_command[@]}" "$@" -} - -# Execute database initialization scripts -init_db() { - # Guard against empty glob (no files match) - if ! compgen -G "$1" > /dev/null 2>&1; then - return - fi - - local f - for f; do - case "$f" in - *.sh) - if [ -x "$f" ]; then - # Script is executable. Run it. - printf ' running %s\n' "$f" - "$f" - else - # Script is not executable. Source it. - printf ' sourcing %s\n' "$f" - . "$f" - fi - ;; - *.sql) printf ' running %s\n' "$f"; cat "$f" | process_sql; printf '\n' ;; - *.sql.gz) printf ' running %s\n' "$f"; gunzip -c "$f" | process_sql; printf '\n' ;; - *.sql.xz) printf ' running %s\n' "$f"; xzcat "$f" | process_sql; printf '\n' ;; - *.sql.zst) printf ' running %s\n' "$f"; zstd -dc "$f" | process_sql; printf '\n' ;; - *) printf ' ignoring %s\n' "$f" ;; - esac - printf '\n' - done -} - -# Create user database. -create_db() { - read_from_file_or_env 'FIREBIRD_DATABASE' - if [ -n "$FIREBIRD_DATABASE" ]; then - # Expand FIREBIRD_DATABASE to full path - cd "$FIREBIRD_DATA" - export FIREBIRD_DATABASE=$(realpath --canonicalize-missing "$FIREBIRD_DATABASE") - - # Store it for other sessions of this instance (append, do not overwrite) - echo "export FIREBIRD_DATABASE='$FIREBIRD_DATABASE'" >> /opt/firebird/.firebird_env - - # Create database only if not exists. - if [ ! -f "$FIREBIRD_DATABASE" ]; then - echo "Creating database '$FIREBIRD_DATABASE'..." - - read_from_file_or_env 'FIREBIRD_DATABASE_PAGE_SIZE' - read_from_file_or_env 'FIREBIRD_DATABASE_DEFAULT_CHARSET' - - local escaped_database - escaped_database=$(escape_sql_string "$FIREBIRD_DATABASE") - - local user_and_password='' - if [ -n "$FIREBIRD_USER" ]; then - # The USER clause value is used as the database owner name and is not - # parsed as an identifier. Pass the effective (unquoted) username. - local owner_name - owner_name=$(unquote_sql_identifier "$(quote_sql_identifier "$FIREBIRD_USER")") - local escaped_user - escaped_user=$(escape_sql_string "$owner_name") - local escaped_password - escaped_password=$(escape_sql_string "$FIREBIRD_PASSWORD") - user_and_password=" USER '${escaped_user}' PASSWORD '${escaped_password}'" - fi - - local page_size='' - [ -n "$FIREBIRD_DATABASE_PAGE_SIZE" ] && page_size="PAGE_SIZE $FIREBIRD_DATABASE_PAGE_SIZE" - - local default_charset='' - [ -n "$FIREBIRD_DATABASE_DEFAULT_CHARSET" ] && default_charset="DEFAULT CHARACTER SET $FIREBIRD_DATABASE_DEFAULT_CHARSET" - - # [Tabs ahead] - /opt/firebird/bin/isql -b -q <<-EOL - CREATE DATABASE '${escaped_database}' - $user_and_password - $page_size - $default_charset; - EXIT; - EOL - - init_db /docker-entrypoint-initdb.d/* - fi - fi -} - -sigint_handler() { - echo "Stopping Firebird... [SIGINT received]" -} - -sigterm_handler() { - echo "Stopping Firebird... [SIGTERM received]" -} - -run_daemon_and_wait() { - # Traps SIGINT (handles Ctrl-C in interactive mode) - trap sigint_handler SIGINT - - # Traps SIGTERM (polite shutdown) - trap sigterm_handler SIGTERM - - # Firebird version - echo -n 'Starting ' - /opt/firebird/bin/firebird -z - - # Run fbguard and wait - /opt/firebird/bin/fbguard & - wait $! -} - - - -# -# main() -# -if [ "$1" = 'firebird' ]; then - set_config - set_sysdba - - create_user - create_db - - run_daemon_and_wait -else - exec "$@" -fi diff --git a/src/README.md.template b/src/README.md.template index 42506ac..5b6fdd0 100644 --- a/src/README.md.template +++ b/src/README.md.template @@ -44,6 +44,11 @@ docker pull firebirdsql/firebird:5-snapshot Images for Firebird 5.x and later are available for both `linux/amd64` and `linux/arm64`. Firebird 3.x and 4.x images are `linux/amd64` only. +## Discontinued distributions + +Debian 11 `bullseye` images (`*-bullseye` tags) are no longer built, because Debian 11 reached its end of life. The tags already published remain available, but they will not receive any updates, including security fixes. Please move to `trixie` (the default) or `bookworm`. + + # How to use this image diff --git a/src/tags.tests.ps1 b/src/tags.tests.ps1 index 9a3d460..a88a329 100644 --- a/src/tags.tests.ps1 +++ b/src/tags.tests.ps1 @@ -69,11 +69,11 @@ Describe 'Get-ImageTags' { } Context 'Older patch version on non-default distro' { - It 'generates only version-distro for 4.0.5-bullseye' { - $tags = Get-ImageTags -Version '4.0.5' -Distro 'bullseye' ` + It 'generates only version-distro for 4.0.5-jammy' { + $tags = Get-ImageTags -Version '4.0.5' -Distro 'jammy' ` -IsLatestOfMajor $false -IsLatestOverall $false -DefaultDistro 'bookworm' - $tags | Should -Contain '4.0.5-bullseye' # version-distro + $tags | Should -Contain '4.0.5-jammy' # version-distro $tags | Should -Not -Contain '4.0.5' # not default distro $tags | Should -HaveCount 1 } From 49968f3c495fbab25ed640daf1cf24c9c92b5db6 Mon Sep 17 00:00:00 2001 From: "F.D.Castel" Date: Sun, 15 Nov 2026 13:52:08 +0000 Subject: [PATCH 2/2] fix(fb3): bump libncurses5/libtinfo5 pin for Noble to 6.3-2ubuntu0.3 archive.ubuntu.com superseded 6.3-2ubuntu0.2 and the old .deb now returns 404, breaking the Firebird 3 Noble build. Same change as 3d3ed63 in #49, needed here so CI can pass on master. --- generated/3.0.10/bookworm/Dockerfile | 8 ++++---- generated/3.0.10/jammy/Dockerfile | 8 ++++---- generated/3.0.10/noble/Dockerfile | 8 ++++---- generated/3.0.10/trixie/Dockerfile | 8 ++++---- generated/3.0.11/bookworm/Dockerfile | 8 ++++---- generated/3.0.11/jammy/Dockerfile | 8 ++++---- generated/3.0.11/noble/Dockerfile | 8 ++++---- generated/3.0.11/trixie/Dockerfile | 8 ++++---- generated/3.0.12/bookworm/Dockerfile | 8 ++++---- generated/3.0.12/jammy/Dockerfile | 8 ++++---- generated/3.0.12/noble/Dockerfile | 8 ++++---- generated/3.0.12/trixie/Dockerfile | 8 ++++---- generated/3.0.13/bookworm/Dockerfile | 8 ++++---- generated/3.0.13/jammy/Dockerfile | 8 ++++---- generated/3.0.13/noble/Dockerfile | 8 ++++---- generated/3.0.13/trixie/Dockerfile | 8 ++++---- generated/3.0.14/bookworm/Dockerfile | 8 ++++---- generated/3.0.14/jammy/Dockerfile | 8 ++++---- generated/3.0.14/noble/Dockerfile | 8 ++++---- generated/3.0.14/trixie/Dockerfile | 8 ++++---- generated/3.0.9/bookworm/Dockerfile | 8 ++++---- generated/3.0.9/jammy/Dockerfile | 8 ++++---- generated/3.0.9/noble/Dockerfile | 8 ++++---- generated/3.0.9/trixie/Dockerfile | 8 ++++---- generated/4.0.0/bookworm/Dockerfile | 8 ++++---- generated/4.0.0/jammy/Dockerfile | 8 ++++---- generated/4.0.0/noble/Dockerfile | 8 ++++---- generated/4.0.0/trixie/Dockerfile | 8 ++++---- generated/4.0.1/bookworm/Dockerfile | 8 ++++---- generated/4.0.1/jammy/Dockerfile | 8 ++++---- generated/4.0.1/noble/Dockerfile | 8 ++++---- generated/4.0.1/trixie/Dockerfile | 8 ++++---- generated/4.0.2/bookworm/Dockerfile | 8 ++++---- generated/4.0.2/jammy/Dockerfile | 8 ++++---- generated/4.0.2/noble/Dockerfile | 8 ++++---- generated/4.0.2/trixie/Dockerfile | 8 ++++---- generated/4.0.3/bookworm/Dockerfile | 8 ++++---- generated/4.0.3/jammy/Dockerfile | 8 ++++---- generated/4.0.3/noble/Dockerfile | 8 ++++---- generated/4.0.3/trixie/Dockerfile | 8 ++++---- generated/4.0.4/bookworm/Dockerfile | 8 ++++---- generated/4.0.4/jammy/Dockerfile | 8 ++++---- generated/4.0.4/noble/Dockerfile | 8 ++++---- generated/4.0.4/trixie/Dockerfile | 8 ++++---- generated/4.0.5/bookworm/Dockerfile | 8 ++++---- generated/4.0.5/jammy/Dockerfile | 8 ++++---- generated/4.0.5/noble/Dockerfile | 8 ++++---- generated/4.0.5/trixie/Dockerfile | 8 ++++---- generated/4.0.6/bookworm/Dockerfile | 8 ++++---- generated/4.0.6/jammy/Dockerfile | 8 ++++---- generated/4.0.6/noble/Dockerfile | 8 ++++---- generated/4.0.6/trixie/Dockerfile | 8 ++++---- generated/4.0.7/bookworm/Dockerfile | 8 ++++---- generated/4.0.7/jammy/Dockerfile | 8 ++++---- generated/4.0.7/noble/Dockerfile | 8 ++++---- generated/4.0.7/trixie/Dockerfile | 8 ++++---- generated/5.0.0/bookworm/Dockerfile | 8 ++++---- generated/5.0.0/jammy/Dockerfile | 8 ++++---- generated/5.0.0/noble/Dockerfile | 8 ++++---- generated/5.0.0/trixie/Dockerfile | 8 ++++---- generated/5.0.1/bookworm/Dockerfile | 8 ++++---- generated/5.0.1/jammy/Dockerfile | 8 ++++---- generated/5.0.1/noble/Dockerfile | 8 ++++---- generated/5.0.1/trixie/Dockerfile | 8 ++++---- generated/5.0.2/bookworm/Dockerfile | 8 ++++---- generated/5.0.2/jammy/Dockerfile | 8 ++++---- generated/5.0.2/noble/Dockerfile | 8 ++++---- generated/5.0.2/trixie/Dockerfile | 8 ++++---- generated/5.0.3/bookworm/Dockerfile | 8 ++++---- generated/5.0.3/jammy/Dockerfile | 8 ++++---- generated/5.0.3/noble/Dockerfile | 8 ++++---- generated/5.0.3/trixie/Dockerfile | 8 ++++---- generated/5.0.4/bookworm/Dockerfile | 8 ++++---- generated/5.0.4/jammy/Dockerfile | 8 ++++---- generated/5.0.4/noble/Dockerfile | 8 ++++---- generated/5.0.4/trixie/Dockerfile | 8 ++++---- src/Dockerfile.template | 8 ++++---- 77 files changed, 308 insertions(+), 308 deletions(-) diff --git a/generated/3.0.10/bookworm/Dockerfile b/generated/3.0.10/bookworm/Dockerfile index 33a9de5..debed50 100644 --- a/generated/3.0.10/bookworm/Dockerfile +++ b/generated/3.0.10/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.10/jammy/Dockerfile b/generated/3.0.10/jammy/Dockerfile index 3a3bb1d..de1c6a4 100644 --- a/generated/3.0.10/jammy/Dockerfile +++ b/generated/3.0.10/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.10/noble/Dockerfile b/generated/3.0.10/noble/Dockerfile index 6a38647..83efdd0 100644 --- a/generated/3.0.10/noble/Dockerfile +++ b/generated/3.0.10/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.10/trixie/Dockerfile b/generated/3.0.10/trixie/Dockerfile index 9c0b884..bacf9c3 100644 --- a/generated/3.0.10/trixie/Dockerfile +++ b/generated/3.0.10/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.11/bookworm/Dockerfile b/generated/3.0.11/bookworm/Dockerfile index 652383c..616f54c 100644 --- a/generated/3.0.11/bookworm/Dockerfile +++ b/generated/3.0.11/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.11/jammy/Dockerfile b/generated/3.0.11/jammy/Dockerfile index 2dd64b2..1bbab84 100644 --- a/generated/3.0.11/jammy/Dockerfile +++ b/generated/3.0.11/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.11/noble/Dockerfile b/generated/3.0.11/noble/Dockerfile index 3c2e520..e60ba6b 100644 --- a/generated/3.0.11/noble/Dockerfile +++ b/generated/3.0.11/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.11/trixie/Dockerfile b/generated/3.0.11/trixie/Dockerfile index c5ed8c1..5546419 100644 --- a/generated/3.0.11/trixie/Dockerfile +++ b/generated/3.0.11/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.12/bookworm/Dockerfile b/generated/3.0.12/bookworm/Dockerfile index 7861cfc..a2fe8cb 100644 --- a/generated/3.0.12/bookworm/Dockerfile +++ b/generated/3.0.12/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.12/jammy/Dockerfile b/generated/3.0.12/jammy/Dockerfile index e7d841a..efa77c1 100644 --- a/generated/3.0.12/jammy/Dockerfile +++ b/generated/3.0.12/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.12/noble/Dockerfile b/generated/3.0.12/noble/Dockerfile index e8883d0..03bdfe7 100644 --- a/generated/3.0.12/noble/Dockerfile +++ b/generated/3.0.12/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.12/trixie/Dockerfile b/generated/3.0.12/trixie/Dockerfile index 3f2b4d7..07c8228 100644 --- a/generated/3.0.12/trixie/Dockerfile +++ b/generated/3.0.12/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.13/bookworm/Dockerfile b/generated/3.0.13/bookworm/Dockerfile index 8fc958c..eefe52c 100644 --- a/generated/3.0.13/bookworm/Dockerfile +++ b/generated/3.0.13/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.13/jammy/Dockerfile b/generated/3.0.13/jammy/Dockerfile index 9afb0b4..2ed78e5 100644 --- a/generated/3.0.13/jammy/Dockerfile +++ b/generated/3.0.13/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.13/noble/Dockerfile b/generated/3.0.13/noble/Dockerfile index dff334e..78ed260 100644 --- a/generated/3.0.13/noble/Dockerfile +++ b/generated/3.0.13/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.13/trixie/Dockerfile b/generated/3.0.13/trixie/Dockerfile index 5f9f67c..5908fea 100644 --- a/generated/3.0.13/trixie/Dockerfile +++ b/generated/3.0.13/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.14/bookworm/Dockerfile b/generated/3.0.14/bookworm/Dockerfile index 4c850b0..441a427 100644 --- a/generated/3.0.14/bookworm/Dockerfile +++ b/generated/3.0.14/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.14/jammy/Dockerfile b/generated/3.0.14/jammy/Dockerfile index 1c3c449..c42f496 100644 --- a/generated/3.0.14/jammy/Dockerfile +++ b/generated/3.0.14/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.14/noble/Dockerfile b/generated/3.0.14/noble/Dockerfile index eafebd0..b886b5c 100644 --- a/generated/3.0.14/noble/Dockerfile +++ b/generated/3.0.14/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.14/trixie/Dockerfile b/generated/3.0.14/trixie/Dockerfile index 96f3f62..724857b 100644 --- a/generated/3.0.14/trixie/Dockerfile +++ b/generated/3.0.14/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.9/bookworm/Dockerfile b/generated/3.0.9/bookworm/Dockerfile index 1edf8d1..5afcddb 100644 --- a/generated/3.0.9/bookworm/Dockerfile +++ b/generated/3.0.9/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.9/jammy/Dockerfile b/generated/3.0.9/jammy/Dockerfile index a650711..62e366c 100644 --- a/generated/3.0.9/jammy/Dockerfile +++ b/generated/3.0.9/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.9/noble/Dockerfile b/generated/3.0.9/noble/Dockerfile index e151d28..77b7c33 100644 --- a/generated/3.0.9/noble/Dockerfile +++ b/generated/3.0.9/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/3.0.9/trixie/Dockerfile b/generated/3.0.9/trixie/Dockerfile index 7362a0b..c529bf4 100644 --- a/generated/3.0.9/trixie/Dockerfile +++ b/generated/3.0.9/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.0/bookworm/Dockerfile b/generated/4.0.0/bookworm/Dockerfile index fd0f375..6507138 100644 --- a/generated/4.0.0/bookworm/Dockerfile +++ b/generated/4.0.0/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.0/jammy/Dockerfile b/generated/4.0.0/jammy/Dockerfile index 4e92ede..40bcf88 100644 --- a/generated/4.0.0/jammy/Dockerfile +++ b/generated/4.0.0/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.0/noble/Dockerfile b/generated/4.0.0/noble/Dockerfile index bb272eb..0c0fdc2 100644 --- a/generated/4.0.0/noble/Dockerfile +++ b/generated/4.0.0/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.0/trixie/Dockerfile b/generated/4.0.0/trixie/Dockerfile index ead67a4..6ff0a32 100644 --- a/generated/4.0.0/trixie/Dockerfile +++ b/generated/4.0.0/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.1/bookworm/Dockerfile b/generated/4.0.1/bookworm/Dockerfile index b07bb8c..33a137a 100644 --- a/generated/4.0.1/bookworm/Dockerfile +++ b/generated/4.0.1/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.1/jammy/Dockerfile b/generated/4.0.1/jammy/Dockerfile index dcdf5cc..18c0a54 100644 --- a/generated/4.0.1/jammy/Dockerfile +++ b/generated/4.0.1/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.1/noble/Dockerfile b/generated/4.0.1/noble/Dockerfile index a0c96fb..de2bd95 100644 --- a/generated/4.0.1/noble/Dockerfile +++ b/generated/4.0.1/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.1/trixie/Dockerfile b/generated/4.0.1/trixie/Dockerfile index e05defa..3751566 100644 --- a/generated/4.0.1/trixie/Dockerfile +++ b/generated/4.0.1/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.2/bookworm/Dockerfile b/generated/4.0.2/bookworm/Dockerfile index d72ad5f..1d2b091 100644 --- a/generated/4.0.2/bookworm/Dockerfile +++ b/generated/4.0.2/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.2/jammy/Dockerfile b/generated/4.0.2/jammy/Dockerfile index 054feb1..9b4c0bf 100644 --- a/generated/4.0.2/jammy/Dockerfile +++ b/generated/4.0.2/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.2/noble/Dockerfile b/generated/4.0.2/noble/Dockerfile index ff8914e..c155216 100644 --- a/generated/4.0.2/noble/Dockerfile +++ b/generated/4.0.2/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.2/trixie/Dockerfile b/generated/4.0.2/trixie/Dockerfile index 877ca13..dce38af 100644 --- a/generated/4.0.2/trixie/Dockerfile +++ b/generated/4.0.2/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.3/bookworm/Dockerfile b/generated/4.0.3/bookworm/Dockerfile index 4884ae3..86476f8 100644 --- a/generated/4.0.3/bookworm/Dockerfile +++ b/generated/4.0.3/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.3/jammy/Dockerfile b/generated/4.0.3/jammy/Dockerfile index 6d8cae3..6d73b2c 100644 --- a/generated/4.0.3/jammy/Dockerfile +++ b/generated/4.0.3/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.3/noble/Dockerfile b/generated/4.0.3/noble/Dockerfile index 6e9e7b8..39805a6 100644 --- a/generated/4.0.3/noble/Dockerfile +++ b/generated/4.0.3/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.3/trixie/Dockerfile b/generated/4.0.3/trixie/Dockerfile index 3d03792..9ba3f97 100644 --- a/generated/4.0.3/trixie/Dockerfile +++ b/generated/4.0.3/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.4/bookworm/Dockerfile b/generated/4.0.4/bookworm/Dockerfile index 9a355b5..3ea1e5e 100644 --- a/generated/4.0.4/bookworm/Dockerfile +++ b/generated/4.0.4/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.4/jammy/Dockerfile b/generated/4.0.4/jammy/Dockerfile index f0c5992..70eff63 100644 --- a/generated/4.0.4/jammy/Dockerfile +++ b/generated/4.0.4/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.4/noble/Dockerfile b/generated/4.0.4/noble/Dockerfile index 51ef49f..2313fc4 100644 --- a/generated/4.0.4/noble/Dockerfile +++ b/generated/4.0.4/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.4/trixie/Dockerfile b/generated/4.0.4/trixie/Dockerfile index 2906a6e..1681e5b 100644 --- a/generated/4.0.4/trixie/Dockerfile +++ b/generated/4.0.4/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.5/bookworm/Dockerfile b/generated/4.0.5/bookworm/Dockerfile index e9b450f..aefdc2d 100644 --- a/generated/4.0.5/bookworm/Dockerfile +++ b/generated/4.0.5/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.5/jammy/Dockerfile b/generated/4.0.5/jammy/Dockerfile index ef6f30d..4633414 100644 --- a/generated/4.0.5/jammy/Dockerfile +++ b/generated/4.0.5/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.5/noble/Dockerfile b/generated/4.0.5/noble/Dockerfile index 35e9467..b8d6d87 100644 --- a/generated/4.0.5/noble/Dockerfile +++ b/generated/4.0.5/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.5/trixie/Dockerfile b/generated/4.0.5/trixie/Dockerfile index 105e14e..d63c1b6 100644 --- a/generated/4.0.5/trixie/Dockerfile +++ b/generated/4.0.5/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.6/bookworm/Dockerfile b/generated/4.0.6/bookworm/Dockerfile index f64e601..f980acd 100644 --- a/generated/4.0.6/bookworm/Dockerfile +++ b/generated/4.0.6/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.6/jammy/Dockerfile b/generated/4.0.6/jammy/Dockerfile index 2e507c4..694c60f 100644 --- a/generated/4.0.6/jammy/Dockerfile +++ b/generated/4.0.6/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.6/noble/Dockerfile b/generated/4.0.6/noble/Dockerfile index 7469096..98d59da 100644 --- a/generated/4.0.6/noble/Dockerfile +++ b/generated/4.0.6/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.6/trixie/Dockerfile b/generated/4.0.6/trixie/Dockerfile index cb094ff..8be7c3a 100644 --- a/generated/4.0.6/trixie/Dockerfile +++ b/generated/4.0.6/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.7/bookworm/Dockerfile b/generated/4.0.7/bookworm/Dockerfile index cb02b6e..be62c24 100644 --- a/generated/4.0.7/bookworm/Dockerfile +++ b/generated/4.0.7/bookworm/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.7/jammy/Dockerfile b/generated/4.0.7/jammy/Dockerfile index 914f687..59d0580 100644 --- a/generated/4.0.7/jammy/Dockerfile +++ b/generated/4.0.7/jammy/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.7/noble/Dockerfile b/generated/4.0.7/noble/Dockerfile index b3a5c6b..09e4a9c 100644 --- a/generated/4.0.7/noble/Dockerfile +++ b/generated/4.0.7/noble/Dockerfile @@ -101,10 +101,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/4.0.7/trixie/Dockerfile b/generated/4.0.7/trixie/Dockerfile index 2d006c0..b419346 100644 --- a/generated/4.0.7/trixie/Dockerfile +++ b/generated/4.0.7/trixie/Dockerfile @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.0/bookworm/Dockerfile b/generated/5.0.0/bookworm/Dockerfile index 785100b..798e7f9 100644 --- a/generated/5.0.0/bookworm/Dockerfile +++ b/generated/5.0.0/bookworm/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.0/jammy/Dockerfile b/generated/5.0.0/jammy/Dockerfile index 0266f19..8ce97b7 100644 --- a/generated/5.0.0/jammy/Dockerfile +++ b/generated/5.0.0/jammy/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.0/noble/Dockerfile b/generated/5.0.0/noble/Dockerfile index f541232..07fcadf 100644 --- a/generated/5.0.0/noble/Dockerfile +++ b/generated/5.0.0/noble/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.0/trixie/Dockerfile b/generated/5.0.0/trixie/Dockerfile index 1a0f1ca..8295896 100644 --- a/generated/5.0.0/trixie/Dockerfile +++ b/generated/5.0.0/trixie/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.1/bookworm/Dockerfile b/generated/5.0.1/bookworm/Dockerfile index f12214e..8996ced 100644 --- a/generated/5.0.1/bookworm/Dockerfile +++ b/generated/5.0.1/bookworm/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.1/jammy/Dockerfile b/generated/5.0.1/jammy/Dockerfile index b232966..9a9e3c5 100644 --- a/generated/5.0.1/jammy/Dockerfile +++ b/generated/5.0.1/jammy/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.1/noble/Dockerfile b/generated/5.0.1/noble/Dockerfile index 712a51f..0ad54bc 100644 --- a/generated/5.0.1/noble/Dockerfile +++ b/generated/5.0.1/noble/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.1/trixie/Dockerfile b/generated/5.0.1/trixie/Dockerfile index f470973..48ddb36 100644 --- a/generated/5.0.1/trixie/Dockerfile +++ b/generated/5.0.1/trixie/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.2/bookworm/Dockerfile b/generated/5.0.2/bookworm/Dockerfile index 6fb9081..5db46db 100644 --- a/generated/5.0.2/bookworm/Dockerfile +++ b/generated/5.0.2/bookworm/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.2/jammy/Dockerfile b/generated/5.0.2/jammy/Dockerfile index 14c6815..dd8aa46 100644 --- a/generated/5.0.2/jammy/Dockerfile +++ b/generated/5.0.2/jammy/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.2/noble/Dockerfile b/generated/5.0.2/noble/Dockerfile index dacf5b6..3ac468b 100644 --- a/generated/5.0.2/noble/Dockerfile +++ b/generated/5.0.2/noble/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.2/trixie/Dockerfile b/generated/5.0.2/trixie/Dockerfile index 4b17087..d507828 100644 --- a/generated/5.0.2/trixie/Dockerfile +++ b/generated/5.0.2/trixie/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.3/bookworm/Dockerfile b/generated/5.0.3/bookworm/Dockerfile index cba1ef7..855f0c1 100644 --- a/generated/5.0.3/bookworm/Dockerfile +++ b/generated/5.0.3/bookworm/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.3/jammy/Dockerfile b/generated/5.0.3/jammy/Dockerfile index 52eed8d..26c4fc8 100644 --- a/generated/5.0.3/jammy/Dockerfile +++ b/generated/5.0.3/jammy/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.3/noble/Dockerfile b/generated/5.0.3/noble/Dockerfile index f47b26d..7738844 100644 --- a/generated/5.0.3/noble/Dockerfile +++ b/generated/5.0.3/noble/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.3/trixie/Dockerfile b/generated/5.0.3/trixie/Dockerfile index 0df8a3a..ef6dd71 100644 --- a/generated/5.0.3/trixie/Dockerfile +++ b/generated/5.0.3/trixie/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.4/bookworm/Dockerfile b/generated/5.0.4/bookworm/Dockerfile index 1c9b378..23121b8 100644 --- a/generated/5.0.4/bookworm/Dockerfile +++ b/generated/5.0.4/bookworm/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.4/jammy/Dockerfile b/generated/5.0.4/jammy/Dockerfile index bb11a63..50d4885 100644 --- a/generated/5.0.4/jammy/Dockerfile +++ b/generated/5.0.4/jammy/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.4/noble/Dockerfile b/generated/5.0.4/noble/Dockerfile index fa12063..a6afdf0 100644 --- a/generated/5.0.4/noble/Dockerfile +++ b/generated/5.0.4/noble/Dockerfile @@ -105,10 +105,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/generated/5.0.4/trixie/Dockerfile b/generated/5.0.4/trixie/Dockerfile index 2d6ae21..5d6810a 100644 --- a/generated/5.0.4/trixie/Dockerfile +++ b/generated/5.0.4/trixie/Dockerfile @@ -104,10 +104,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \ diff --git a/src/Dockerfile.template b/src/Dockerfile.template index f1764a5..45c3495 100644 --- a/src/Dockerfile.template +++ b/src/Dockerfile.template @@ -100,10 +100,10 @@ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl; \ cd /tmp; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.2_amd64.deb; \ - curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - dpkg -i libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ - rm -f libtinfo5_6.3-2ubuntu0.2_amd64.deb libncurses5_6.3-2ubuntu0.2_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.3_amd64.deb; \ + curl -fSL -O http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + dpkg -i libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ + rm -f libtinfo5_6.3-2ubuntu0.3_amd64.deb libncurses5_6.3-2ubuntu0.3_amd64.deb; \ apt-get purge -y --auto-remove curl ca-certificates; \ apt-get clean; \ rm -rf /var/lib/apt/lists/* \