#605 Prebuilt Docker images for builds and tests
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#605
- issue
- state:closed
Builds and tests install the same system packages on every run, from distribution mirrors that sometimes fail. v0.26.0's release failed twice this way: GitHub's runners couldn't resolve Ubuntu's mirrors, then Azure's Ubuntu mirror refused connections during the Ubuntu 24.04 server package's Docker build. Prebuilt images, built in this repository and published to GitHub's container registry, would make these builds independent of the mirrors and let them be reproduced locally. The time saved is small, about 4–5 runner-minutes per CI run, and under a minute of waiting. ## Images 1. **Server package build tools**, one per .deb and .rpm target (Debian 13, Ubuntu 24.04, Rocky 10, Fedora 44): the compilers, PostgreSQL's development files, GMP, SQLite and the pinned Rust for och-convert and pgmp, and the few tools the package stage uses. - **Single source:** the images are stages of `deploy/debian-server/Dockerfile` and `deploy/rpm-server/Dockerfile` themselves, so the Dockerfiles stay the single source. - **Fallback:** a build uses the image whose tag matches its Dockerfile, and builds the stage itself when there is none. 2. **Linux desktop build image:** Rust, WebKitGTK, GTK and the other Tauri dependencies, for the Linux desktop jobs and the desktop UI test. It also lets machines without those libraries compile `src-tauri`. 3. **PostgreSQL 16 with pgmp and the native build dependencies:** for the PostgreSQL test job, the benchmarks and local test databases. ## Not covered - **Windows and macOS:** no Docker; their native dependencies are already cached. - **Browser tests:** they use the official Playwright image. - **Fresh-container install tests:** these must keep using the distributions' own images, as users get them. ## Upkeep - **Rebuilds:** when their Dockerfiles change, and weekly for security updates. - **Provenance:** every image is attested, as release assets are. https://github.com/circagraph/timeline-app/issues/605
Related
- #606 Server packages build from prebuilt tools images (#605)
- #608 The Linux desktop jobs run in a prebuilt desktop build image (#605)
- #619 The PostgreSQL job runs in a prebuilt image on the project's runner (#605)
- #620 The benchmarks run in the PostgreSQL CI image (#605)
- The Linux desktop jobs run in a prebuilt desktop build image (#605)
- The benchmarks run in the PostgreSQL CI image (#605)
- Merge pull request #606 from openchronology/feat/605-server-build-images
- The PostgreSQL job runs in a prebuilt image on the project's runner (#605)
- Server packages build from prebuilt tools images (#605)
- Merge pull request #608 from openchronology/feat/605-desktop-build-image
- Merge pull request #620 from openchronology/feat/bench-postgres-ci-image
- Merge pull request #619 from openchronology/feat/605-postgres-ci-image
Open #605 Prebuilt Docker images for builds and tests in the timeline