Commit Graph

23 Commits

Author SHA1 Message Date
Dan C Williams
656e5556c6 Fix healthcheck by adding procps to runtime dependencies
The HEALTHCHECK uses pgrep to monitor the proton-bridge process, but
procps (which provides pgrep) was not installed in the runtime image.
This caused the container to remain permanently unhealthy.

Fixes #14
2026-02-27 06:54:24 -06:00
Dan C Williams
fa6545f794 Fix InvalidBaseImagePlatform warnings by using multi-arch manifest list digests
Replace platform-specific amd64 digests for debian:sid-slim and
debian:bookworm-slim with multi-arch manifest list digests so Buildx
can resolve the correct platform image when building for riscv64.
2026-02-26 16:10:50 -06:00
Dan C Williams
82bd9081c8 Pin base image digests and add Renovate for automated updates
Renovate will open PRs automatically when debian:bookworm-slim or
debian:sid-slim receive updates (e.g. security patches), keeping the
container current without relying solely on scheduled rebuilds.
2026-02-26 11:53:35 -06:00
Dan Williams
f0b5e083ff Fix build hangs: add apt-get network timeout and job timeout
apt-get has no default network timeout, so an unresponsive Debian mirror
can block a build stage indefinitely. Add Acquire::http::Timeout=30 to
both update and install calls in all apt-get invocations so mirror hangs
fail fast rather than running until GitHub's 6-hour job limit.

Also add timeout-minutes: 60 to the build job so a runaway step fails
within an hour rather than silently consuming the full 6-hour default.
2026-02-25 06:29:20 -06:00
Dan Williams
506ff0e66f Fix ARG scoping: declare RUNTIME_IMAGE before first FROM 2026-02-24 21:21:41 -06:00
Dan Williams
e769e2bbb0 Fix riscv64 runtime: use sid-slim on riscv64, bookworm-slim elsewhere
debian:bookworm-slim has no riscv64 image. Parameterize the runtime
base via RUNTIME_IMAGE build-arg; the workflow passes sid-slim for
riscv64 and bookworm-slim for all other platforms.
2026-02-24 21:16:50 -06:00
Dan Williams
fcebd8a198 Stabilize runtime image, add PR-based version gating, drop arm/v7
Dockerfile:
- Keep build stage on debian:sid-slim (required for riscv64 Go support)
- Switch runtime stage to debian:bookworm-slim for stable, predictable
  package names — eliminates the libcbor0 class of breakage for users

update-check.py:
- Create a branch and open a PR instead of pushing directly to master
- PR body links to upstream release notes and prompts review of new
  dependencies before merge
- Remove dead deb/PACKAGE code

build.yaml:
- Drop linux/arm/v7 — upstream go-libfido2 is incompatible with 32-bit
  ARM address space as of v3.22.0; not fixable without upstream changes
- Add VERSION to pull_request trigger paths so the test job builds
  and validates every version bump PR before it can be merged

update-check.yaml:
- Pass GITHUB_TOKEN and GITHUB_REPOSITORY to script for PR creation

README.md:
- Document arm/v7 as unsupported with reason
2026-02-24 21:11:29 -06:00
Dan Williams
152ddbc05b Fix runtime deps: drop explicit libcbor0, libfido2-1 pulls it transitively 2026-02-24 20:36:42 -06:00
Dan Williams
5ad6fa81e3 Fix v3.22.0 build, improve stability, and set up for community maintenance
- Add libfido2-dev, libcbor-dev to build deps; libfido2-1, libcbor0 to runtime (fixes #135)
- Make bridge binaries read-only to block built-in auto-updater at runtime
- Add HEALTHCHECK to Dockerfile
- Fix long-uptime stdin stability: replace cat pipe with sleep infinity
- Clean up stale GPG agent sockets on container startup
- Update maintainer label
- Repoint build.yaml to dancwilliams Docker Hub and GHCR repos
- Use clean version/latest tags (drop -build suffix)
- Fix missing checkout in merge job
- Add workflow_dispatch and pip install to update-check.yaml
- Remove Gitee mirror workflow
- Remove legacy deb build (Dockerfile, workflow, and deb/ directory)
2026-02-24 20:15:39 -06:00
simonfelding
4ccd39856a
improve build readability and speed (by parallelization) (#117) 2025-04-24 23:03:50 +02:00
simonfelding
d00645ffcc
add vaulteditor and fix build on arm (#114)
first working build for a long time
2025-02-15 19:38:15 +01:00
simonfelding
a19458f703
fix builds by switching base layer to debian:sid-slim
tested locally, works fine.
debian has supported riscv64 in the sid image for some time.

this is the same thing the carlosedp/golang image did.

this also fixes the bug with the wrong glibc version, as the build
container now uses the same glibc version as the final container.
2025-02-15 17:07:15 +01:00
Daniel Nathan Gray
89b3ef69f4
Rebase on Jammy (#71)
If you're going to build v3 you need to have Jammy, or you will get
glibc errors
2023-01-14 14:56:03 +08:00
Olof Nord
0541f29d98 Add riscv64 support to docker builds
* Adjust GitHub CI to also build for riscv64
* Update base Ubuntu base for build from 18.04 LTS to 20.04 LTS as to support riscv64
* Minor: Exclude idea IDE files from git
2022-11-20 23:32:58 +08:00
Xiaonan Shen
252397a86d Switch to carlosedp/golang for riscv64 support 2022-11-20 23:12:46 +08:00
Xiaonan Shen
535c80379d Copy bridge executable to the image (fixes #66) 2022-11-05 14:30:33 +08:00
Xiaonan Shen
6decf657c2 Bump golang to 1.18 2022-10-16 15:04:58 +08:00
Giulio De Pasquale
ae2117655e
Update Dockerfile
bump golang to 1.15 in build
2021-06-17 21:34:25 +01:00
Xiaonan Shen
15b7d488a2
Add ca-certificates to docker image 2021-01-07 21:14:11 +08:00
Xiaonan Shen
2647f8540e
Add update check to build (#19)
* Remove armv7 temporarily

* Improve build script

* Add update check for build

* Update README

* Fix build script

* Change build version format

* Improve update check

* Bump build version to v1.5.4

* Fix build Dockerfile

* Fix build action yaml

Co-authored-by: GitHub Actions <actions@github.com>
2021-01-07 18:19:11 +08:00
Xiaonan Shen
790889314e Fix gpg init failure 2020-11-19 16:00:35 -08:00
Xiaonan Shen
006d1e0a84
Update architectures 2020-06-01 07:40:28 -07:00
Xiaonan Shen
55175292b0 Add build from source 2020-06-01 06:51:57 -07:00