diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 09:20:39 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 09:20:39 +0200 |
| commit | a3ad2857f7b47202cd7ff74f965d09d691b06317 (patch) | |
| tree | 2740835a8a58ae3fe98d5cff7598c6fbed2a8d68 /deploy | |
| parent | 5b27bb0950fd03d29c223b5960faff89baf37970 (diff) | |
| download | bokf-0.1.45.tar.gz bokf-0.1.45.zip | |
deploy: alpine runtime image with the daemon and CLI onlyv0.1.45
Diffstat (limited to 'deploy')
| -rw-r--r-- | deploy/Dockerfile.cross | 12 | ||||
| -rw-r--r-- | deploy/cross-build.sh | 13 | ||||
| -rwxr-xr-x | deploy/docker-entrypoint.sh | 2 |
3 files changed, 1 insertions, 26 deletions
diff --git a/deploy/Dockerfile.cross b/deploy/Dockerfile.cross deleted file mode 100644 index 9a568cf..0000000 --- a/deploy/Dockerfile.cross +++ /dev/null @@ -1,12 +0,0 @@ -# Cross-compile the arm64 binaries on an amd64 host. The runtime image is -# assembled later on the target host from the produced binaries. -FROM debian:bookworm -RUN dpkg --add-architecture arm64 \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - make ca-certificates gcc-aarch64-linux-gnu \ - libncurses-dev:arm64 libssl-dev:arm64 \ - && rm -rf /var/lib/apt/lists/* -COPY cross-build.sh /usr/local/bin/cross-build -RUN chmod 0755 /usr/local/bin/cross-build -ENTRYPOINT ["/usr/local/bin/cross-build"] diff --git a/deploy/cross-build.sh b/deploy/cross-build.sh deleted file mode 100644 index 7c90b0f..0000000 --- a/deploy/cross-build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Cross-compile bokfd/bokfctl/bokftui for aarch64. Expects the source -# read-only at /src, writes the binaries to /out and takes the version from -# $VERSION. Run through deploy/Dockerfile.cross. -set -eu - -make -C /src -j"$(nproc)" BUILD=/tmp/build \ - CC=aarch64-linux-gnu-gcc \ - CFLAGS="-O2 -g -L/usr/lib/aarch64-linux-gnu" \ - VERSION="${VERSION:-0.1.0-dev}" - -mkdir -p /out -cp /tmp/build/bokfd /tmp/build/bokfctl /tmp/build/bokftui /out/ diff --git a/deploy/docker-entrypoint.sh b/deploy/docker-entrypoint.sh index 3cab4bd..d63f9dd 100755 --- a/deploy/docker-entrypoint.sh +++ b/deploy/docker-entrypoint.sh @@ -12,7 +12,7 @@ mkdir -p "$BOKFD_BACKUP_DIR" "$BOKFD_EXPORT_DIR" "$(dirname "$BOKFD_SOCKET")" \ chown -R bokfd:bokfd /var/lib/bokfd "$(dirname "$BOKFD_SOCKET")" case "${1:-}" in - bokfd | bokfctl | bokftui | /*) + bokfd | bokfctl | /*) exec setpriv --reuid=bokfd --regid=bokfd --clear-groups "$@" ;; *) |
