mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 20:36:37 -05:00
Add QEMU binfmt setup and fix static installer
- Fix typo in static.installer: /pkg/ -> /pkgs/ - Add missing mkdir -p /build before makeself - Mount pkgs directory via podman build -v so static.installer can access previously built static tarballs without relying on bind mounts relative to the build context - Register qemu-user-static binfmt handlers for cross-compilation - Make --git-repo optional when using --setup
This commit is contained in:
parent
949988097b
commit
b8596e28de
2 changed files with 34 additions and 5 deletions
|
|
@ -2,8 +2,9 @@ ARG BUILD_TIMESTAMP=0
|
|||
FROM --platform=linux/amd64 ubuntu:latest as build
|
||||
RUN apt-get update && apt-get install -y makeself
|
||||
RUN mkdir -p /tmp/mergerfs/
|
||||
RUN --mount=type=bind,src=pkgs,dst=/pkgs ls -lhd /pkgs
|
||||
RUN --mount=type=bind,src=pkgs,dst=/pkgs cp -v /pkg/*static*.gz /tmp/mergerfs/
|
||||
RUN ls -lhd /pkgs
|
||||
RUN cp -v /pkgs/*static*.gz /tmp/mergerfs/
|
||||
RUN mkdir -p /build
|
||||
RUN makeself /tmp/mergerfs/ /build/mergerfs-installer.run "mergerfs" echo "foo"
|
||||
|
||||
FROM scratch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue