Strip CNG 19.6's tini install and follow its compose path
CNG v19.6.0-ubi changes two things this repository depends on, and each stops a 19.6 release run.
useCopyForTini strips the old tini download from gitlab-base. CNG now adds a TARGETARCH case, a sha256sum check and two TINI_SHA256 args around it, so the rendered Dockerfile fails to parse. The helper now deletes those too. Releases before 19.6 render as before.
CNG also moved dev/ to development/compose/mnt/shared. DEV_DIR in .env follows, so the local compose test mounts real files. This breaks the compose test for a release before 19.6, which needs the old path.
flowchart LR
A[CNG tag v19.6.0-ubi] --> B[release-helper.sh edits gitlab-base Dockerfile]
B --> C{useCopyForTini}
C -- before this MR --> D[case, curl, args and sha256 check stay: parse error on line 45]
C -- with this MR --> E[Dockerfile builds]
A --> F[CNG tree has development/compose/mnt/shared, no dev/]
F --> G[.env DEV_DIR]
G -- old path --> H[compose creates empty root-owned dirs, services exit]
G -- new path --> I[services mount the config and secrets]Checks
On a lab VM with Repo1 cloned anonymously, one clean copy of the scripts per arm. Each arm below except the last ran on master or on c0c2947, an earlier commit that was never pushed, whose case pattern was case "\${TARGETARCH}" in. The head, 6c9f312, loosens that pattern to .*TARGETARCH so shellcheck stays silent, and nothing else differs. Over gitlab-base/Dockerfile.ubi from v19.5.6-ubi, v19.6.0-ubi and v19.6.1-ubi, the sed blocks of c0c2947 and 6c9f312 give byte-identical output (cmp).
Arms:
v19.6.0-ubi, master:build-script.sh v19.6.0-ubi gitlab-basefails withdockerfile parse error on line 45: unknown instruction: &&.v19.6.0-ubi, this branch: the gitlab-base Dockerfile is clean and all 16 images build.v19.6.1-ubi, this branch: all 16 render correctly, none keeps a tini download, andtini --versionruns in the gitlab-base image.v19.5.6-ubi, this branch: 0 changed files in all 16, the same as master.v19.6.0-ubiwith the oldDEV_DIR: redis, gitaly, registry, workhorse and six other services exit, only postgres and shell stay up, andcurlto the web port returns 000.- With the new
DEV_DIR: services match master atv19.5.6-ubi, where kas also exits (#107). The sign-in URL redirects to initial setup and answers 200 on ports 3000, 8181 and 8080, and a project with a README is created. - The first check used
curland a project created from the Rails console. A second check ran6c9f312as a patch on master atv19.6.0-ubi, with the unmodified scripts onv19.5.6-ubifor comparison. A script with no browser signed in through the form, then cloned, committed and pushed over SSH on port 2222 and over HTTP on port 3000. Every step passed on both versions, and kas exits 1 on both (#107).
An AI coding assistant wrote this change. The assistant also checked each claim against the CNG v19.5.6-ubi, v19.6.0-ubi and v19.6.1-ubi trees and ran shellcheck, the project's CI linter, on every .sh file in the repository on a laptop. It ran the builds and the compose test on a lab VM.
Related issues
- Related to #138 (closed), the Release 19.6.0 tracking issue, and #42.