mirror of https://github.com/trapexit/mergerfs.git
Browse Source
Further tweaks to config parsing and error reporting (#1559)
Further tweaks to config parsing and error reporting (#1559)
* Further tweaks to config parsing and error reporting * Fix static buildspull/1561/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 58 additions and 57 deletions
-
4Makefile
-
2buildtools/build-release
-
10buildtools/containerfiles/static.amd64
-
10buildtools/containerfiles/static.arm64
-
10buildtools/containerfiles/static.armhf
-
10buildtools/containerfiles/static.i386
-
10buildtools/containerfiles/static.riscv64
-
11libfuse/Makefile
-
2libfuse/lib/fuse_lowlevel.cpp
-
16src/config.cpp
-
2src/mergerfs.cpp
-
28src/option_parser.cpp
@ -1,13 +1,15 @@ |
|||||
ARG BUILD_TIMESTAMP=0 |
|
||||
FROM --platform=linux/amd64 alpine:latest as build |
FROM --platform=linux/amd64 alpine:latest as build |
||||
COPY install-build-pkgs /tmp/ |
COPY install-build-pkgs /tmp/ |
||||
RUN /tmp/install-build-pkgs |
RUN /tmp/install-build-pkgs |
||||
ARG BRANCH=master |
|
||||
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}" |
|
||||
|
ARG BUILD_TIMESTAMP=0 |
||||
|
ARG GIT_REPO |
||||
|
ARG BRANCH |
||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs |
||||
WORKDIR /tmp/mergerfs |
WORKDIR /tmp/mergerfs |
||||
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
||||
RUN mkdir /build |
RUN mkdir /build |
||||
RUN tar cvfz /build/mergerfs-static-linux_amd64.tar.gz --directory=/tmp usr sbin |
|
||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version |
||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_amd64.tar.gz --directory=/tmp usr sbin |
||||
|
|
||||
FROM scratch |
FROM scratch |
||||
COPY --from=build /build/ / |
COPY --from=build /build/ / |
||||
@ -1,13 +1,15 @@ |
|||||
ARG BUILD_TIMESTAMP=0 |
|
||||
FROM --platform=linux/arm64 alpine:latest as build |
FROM --platform=linux/arm64 alpine:latest as build |
||||
COPY install-build-pkgs /tmp/ |
COPY install-build-pkgs /tmp/ |
||||
RUN /tmp/install-build-pkgs |
RUN /tmp/install-build-pkgs |
||||
ARG BRANCH=master |
|
||||
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}" |
|
||||
|
ARG BUILD_TIMESTAMP=0 |
||||
|
ARG GIT_REPO |
||||
|
ARG BRANCH |
||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs |
||||
WORKDIR /tmp/mergerfs |
WORKDIR /tmp/mergerfs |
||||
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
||||
RUN mkdir /build |
RUN mkdir /build |
||||
RUN tar cvfz /build/mergerfs-static-linux_arm64.tar.gz --directory=/tmp usr sbin |
|
||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version |
||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_arm64.tar.gz --directory=/tmp usr sbin |
||||
|
|
||||
FROM scratch |
FROM scratch |
||||
COPY --from=build /build/ / |
COPY --from=build /build/ / |
||||
@ -1,13 +1,15 @@ |
|||||
ARG BUILD_TIMESTAMP=0 |
|
||||
FROM --platform=linux/armhf alpine:latest as build |
FROM --platform=linux/armhf alpine:latest as build |
||||
COPY install-build-pkgs /tmp/ |
COPY install-build-pkgs /tmp/ |
||||
RUN /tmp/install-build-pkgs |
RUN /tmp/install-build-pkgs |
||||
ARG BRANCH=master |
|
||||
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}" |
|
||||
|
ARG BUILD_TIMESTAMP=0 |
||||
|
ARG GIT_REPO |
||||
|
ARG BRANCH |
||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs |
||||
WORKDIR /tmp/mergerfs |
WORKDIR /tmp/mergerfs |
||||
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
||||
RUN mkdir /build |
RUN mkdir /build |
||||
RUN tar cvfz /build/mergerfs-static-linux_armhf.tar.gz --directory=/tmp usr sbin |
|
||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version |
||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_armhf.tar.gz --directory=/tmp usr sbin |
||||
|
|
||||
FROM scratch |
FROM scratch |
||||
COPY --from=build /build/ / |
COPY --from=build /build/ / |
||||
@ -1,13 +1,15 @@ |
|||||
ARG BUILD_TIMESTAMP=0 |
|
||||
FROM --platform=linux/i386 alpine:latest as build |
FROM --platform=linux/i386 alpine:latest as build |
||||
COPY install-build-pkgs /tmp/ |
COPY install-build-pkgs /tmp/ |
||||
RUN /tmp/install-build-pkgs |
RUN /tmp/install-build-pkgs |
||||
ARG BRANCH=master |
|
||||
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}" |
|
||||
|
ARG BUILD_TIMESTAMP=0 |
||||
|
ARG GIT_REPO |
||||
|
ARG BRANCH |
||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs |
||||
WORKDIR /tmp/mergerfs |
WORKDIR /tmp/mergerfs |
||||
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
||||
RUN mkdir /build |
RUN mkdir /build |
||||
RUN tar cvfz /build/mergerfs-static-linux_i386.tar.gz --directory=/tmp usr sbin |
|
||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version |
||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_i386.tar.gz --directory=/tmp usr sbin |
||||
|
|
||||
FROM scratch |
FROM scratch |
||||
COPY --from=build /build/ / |
COPY --from=build /build/ / |
||||
@ -1,13 +1,15 @@ |
|||||
ARG BUILD_TIMESTAMP=0 |
|
||||
FROM --platform=linux/riscv64 alpine:latest as build |
FROM --platform=linux/riscv64 alpine:latest as build |
||||
COPY install-build-pkgs /tmp/ |
COPY install-build-pkgs /tmp/ |
||||
RUN /tmp/install-build-pkgs |
RUN /tmp/install-build-pkgs |
||||
ARG BRANCH=master |
|
||||
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}" |
|
||||
|
ARG BUILD_TIMESTAMP=0 |
||||
|
ARG GIT_REPO |
||||
|
ARG BRANCH |
||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs |
||||
WORKDIR /tmp/mergerfs |
WORKDIR /tmp/mergerfs |
||||
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install |
||||
RUN mkdir /build |
RUN mkdir /build |
||||
RUN tar cvfz /build/mergerfs-static-linux_riscv64.tar.gz --directory=/tmp usr sbin |
|
||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version |
||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_riscv64.tar.gz --directory=/tmp usr sbin |
||||
|
|
||||
FROM scratch |
FROM scratch |
||||
COPY --from=build /build/ / |
COPY --from=build /build/ / |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue