mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
More build process updates (#1516)
This commit is contained in:
parent
90b3585347
commit
071af2e516
87 changed files with 507 additions and 534 deletions
107
Makefile
107
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2024, Antonio SJ Musumeci <trapexit@spawn.link>
|
# Copyright (c) 2025, Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and/or distribute this software for any
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
# purpose with or without fee is hereby granted, provided that the above
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
ifeq ($(shell id -u),0)
|
||||||
|
FAKEROOT ?=
|
||||||
|
endif
|
||||||
|
|
||||||
CP ?= cp
|
CP ?= cp
|
||||||
FAKEROOT ?= fakeroot
|
FAKEROOT ?= fakeroot
|
||||||
FIND ?= find
|
FIND ?= find
|
||||||
|
|
@ -29,7 +33,7 @@ TAR ?= tar
|
||||||
TOUCH ?= touch
|
TOUCH ?= touch
|
||||||
|
|
||||||
BUILDDIR := build
|
BUILDDIR := build
|
||||||
GITREF = $(shell git describe --exact-match --tags HEAD 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
|
GITHUB_REPO ?= "https://github.com/trapexit/mergerfs"
|
||||||
|
|
||||||
ifndef GIT_REPO
|
ifndef GIT_REPO
|
||||||
ifneq ($(shell $(GIT) --version 2> /dev/null),)
|
ifneq ($(shell $(GIT) --version 2> /dev/null),)
|
||||||
|
|
@ -61,13 +65,13 @@ LTO_FLAGS :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRC := $(wildcard src/*.cpp)
|
SRC := $(wildcard src/*.cpp)
|
||||||
OBJS := $(SRC:src/%.cpp=build/.src/%.o)
|
OBJS := $(SRC:src/%.cpp=build/.objs/%.cpp.o)
|
||||||
DEPS := $(SRC:src/%.cpp=build/.src/%.d)
|
DEPS := $(SRC:src/%.cpp=build/.objs/%.cpp.d)
|
||||||
|
|
||||||
TESTS := $(wildcard tests/*.cpp)
|
TESTS := $(wildcard tests/*.cpp)
|
||||||
TESTS_OBJS := $(filter-out build/.src/mergerfs.o,$(OBJS))
|
TESTS_OBJS := $(filter-out build/.objs/mergerfs.o,$(OBJS))
|
||||||
TESTS_OBJS += $(TESTS:tests/%.cpp=build/.tests/%.o)
|
TESTS_OBJS += $(TESTS:tests/%.cpp=build/.test_objs/%.cpp.o)
|
||||||
TESTS_DEPS := $(TESTS:tests/%.cpp=build/.tests/%.d)
|
TESTS_DEPS := $(TESTS:tests/%.cpp=build/.test_objs/%.cpp.d)
|
||||||
TESTS_DEPS += $(DEPS)
|
TESTS_DEPS += $(DEPS)
|
||||||
|
|
||||||
MANPAGE := mergerfs.1
|
MANPAGE := mergerfs.1
|
||||||
|
|
@ -140,10 +144,13 @@ all: libfuse $(BUILDDIR)/mergerfs $(BUILDDIR)/fsck.mergerfs $(BUILDDIR)/mergerfs
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
@echo "usage: make\n"
|
@echo "usage: make ARG\n"
|
||||||
@echo "make USE_XATTR=0 - build program without xattrs functionality"
|
@echo "USE_XATTR=0 - build program without xattrs functionality"
|
||||||
@echo "make STATIC=1 - build static binary"
|
@echo "STATIC=1 - build static binary"
|
||||||
@echo "make LTO=1 - build with link time optimization"
|
@echo "LTO=1 - build with link time optimization"
|
||||||
|
@echo "CLEANUP=1 - cleanup images between release build process"
|
||||||
|
@echo "PKGDIR=/dir/ - location for release build pkgs"
|
||||||
|
@echo "GITREF=gitref - gitref to use for release builds"
|
||||||
|
|
||||||
|
|
||||||
$(BUILDDIR)/mergerfs: $(LIBFUSE) src/version.hpp $(OBJS)
|
$(BUILDDIR)/mergerfs: $(LIBFUSE) src/version.hpp $(OBJS)
|
||||||
|
|
@ -165,6 +172,7 @@ libfuse:
|
||||||
|
|
||||||
tests: $(BUILDDIR)/tests
|
tests: $(BUILDDIR)/tests
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
changelog:
|
changelog:
|
||||||
ifdef GIT_REPO
|
ifdef GIT_REPO
|
||||||
$(GIT2DEBCL) --name mergerfs > ChangeLog
|
$(GIT2DEBCL) --name mergerfs > ChangeLog
|
||||||
|
|
@ -179,13 +187,14 @@ src/version.hpp:
|
||||||
./buildtools/update-version
|
./buildtools/update-version
|
||||||
|
|
||||||
$(BUILDDIR)/stamp:
|
$(BUILDDIR)/stamp:
|
||||||
$(MKDIR) -p $(BUILDDIR)/.src $(BUILDDIR)/.tests
|
$(MKDIR) -p $(BUILDDIR)/.objs
|
||||||
|
$(MKDIR) -p $(BUILDDIR)/.test_objs
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
$(BUILDDIR)/.src/%.o: src/%.cpp $(BUILDDIR)/stamp
|
$(BUILDDIR)/.objs/%.cpp.o: src/%.cpp $(BUILDDIR)/stamp
|
||||||
$(CXX) $(CXXFLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
$(CXX) $(CXXFLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILDDIR)/.tests/%.o: tests/%.cpp
|
$(BUILDDIR)/.test_objs/%.cpp.o: tests/%.cpp
|
||||||
$(CXX) $(CXXFLAGS) $(TESTS_FLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
$(CXX) $(CXXFLAGS) $(TESTS_FLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILDDIR)/preload.so: $(BUILDDIR)/stamp tools/preload.c
|
$(BUILDDIR)/preload.so: $(BUILDDIR)/stamp tools/preload.c
|
||||||
|
|
@ -199,6 +208,7 @@ clean: rpm-clean
|
||||||
$(FIND) . -name "*~" -delete
|
$(FIND) . -name "*~" -delete
|
||||||
$(MAKE) -C libfuse clean
|
$(MAKE) -C libfuse clean
|
||||||
|
|
||||||
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
ifdef GIT_REPO
|
ifdef GIT_REPO
|
||||||
$(GIT) clean -xfd
|
$(GIT) clean -xfd
|
||||||
|
|
@ -302,62 +312,35 @@ install-build-pkgs:
|
||||||
install-build-tools:
|
install-build-tools:
|
||||||
./bulidtools/install-build-tools
|
./bulidtools/install-build-tools
|
||||||
|
|
||||||
|
define build_release
|
||||||
|
$(eval GITREF ?= $(shell git describe --exact-match --tags HEAD 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD))
|
||||||
|
./buildtools/build-release \
|
||||||
|
--target=$(1) \
|
||||||
|
$(if $(CLEANUP),--cleanup) \
|
||||||
|
$(if $(PKGDIR),--pkgdirpath=$(PKGDIR)) \
|
||||||
|
--git-repo=$(if $(REMOTE_REPO),$(GITHUB_REPO),".") \
|
||||||
|
--branch=$(GITREF)
|
||||||
|
endef
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
|
.PHONY: release-amd64 release-arm64 release-armhf release-riscv64
|
||||||
|
.PHONY: release-sample release-static release-tarball
|
||||||
release:
|
release:
|
||||||
./buildtools/build-release \
|
$(call build_release,"all")
|
||||||
--target=all \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-sample
|
|
||||||
release-sample:
|
release-sample:
|
||||||
./buildtools/build-release \
|
$(call build_release,"debian:13.amd64")
|
||||||
--target=debian.12.amd64 \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-amd64
|
|
||||||
release-amd64:
|
release-amd64:
|
||||||
./buildtools/build-release \
|
$(call build_release,"amd64")
|
||||||
--target=amd64 \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-arm64
|
|
||||||
release-arm64:
|
release-arm64:
|
||||||
./buildtools/build-release \
|
$(call build_release,"arm64")
|
||||||
--target=arm64 \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-riscv64
|
|
||||||
release-riscv64:
|
|
||||||
./buildtools/build-release \
|
|
||||||
--target=riscv64 \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-armhf
|
|
||||||
release-armhf:
|
release-armhf:
|
||||||
./buildtools/build-release \
|
$(call build_release,"armhf")
|
||||||
--target=armhf \
|
release-riscv64:
|
||||||
$(if $(CLEANUP),--cleanup) \
|
$(call build_release,"risc64")
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-static
|
|
||||||
release-static:
|
release-static:
|
||||||
./buildtools/build-release \
|
$(call build_release,"static")
|
||||||
--target=static \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
.PHONY: release-tarball
|
|
||||||
release-tarball:
|
release-tarball:
|
||||||
./buildtools/build-release \
|
$(call build_release,"tarball")
|
||||||
--target=tarball \
|
|
||||||
$(if $(CLEANUP),--cleanup) \
|
|
||||||
--branch=$(GITREF)
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,47 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
BRANCH="${1:-master}"
|
if [ $# -ne 2 ]; then
|
||||||
SRCDIR="/tmp/mergerfs"
|
echo "usage: $0 <branch> <git_repo>"
|
||||||
REPO_URL="https://github.com/trapexit/mergerfs"
|
echo "argv: $@"
|
||||||
|
echo "argc: $#"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
GIT_REPO="${1}"
|
||||||
|
BRANCH="${2}"
|
||||||
|
BUILDDIR="/tmp/build"
|
||||||
|
|
||||||
|
echo "Clone source from ${GIT_REPO} to ${BUILDDIR}"
|
||||||
git \
|
git \
|
||||||
clone \
|
clone \
|
||||||
--single-branch \
|
--single-branch \
|
||||||
--branch="${BRANCH}" \
|
--branch="${BRANCH}" \
|
||||||
"${REPO_URL}" \
|
"${GIT_REPO}" \
|
||||||
"${SRCDIR}"
|
"${BUILDDIR}"
|
||||||
|
|
||||||
cd "${SRCDIR}"
|
cd "${BUILDDIR}"
|
||||||
|
|
||||||
git log HEAD^1..
|
git log HEAD^1..
|
||||||
|
|
||||||
mkdir /build
|
mkdir "/build"
|
||||||
if [ -e /usr/bin/apt-get ]; then
|
if [ -e /usr/bin/apt-get ]; then
|
||||||
make deb
|
make deb
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
. /etc/lsb-release
|
|
||||||
cp -v /etc/lsb-release "/build/${DISTRIB_ID}.${DISTRIB_CODENAME}.${DISTRIB_RELEASE}.$(arch).FAILED"
|
|
||||||
fi
|
|
||||||
find /tmp/ \
|
find /tmp/ \
|
||||||
-type f \
|
-type f \
|
||||||
-name "*.deb" \
|
-name "*.deb" \
|
||||||
-not -name "*dbgsym*" \
|
-not -name "*dbgsym*" \
|
||||||
-exec cp -v {} /build/ \;
|
-exec cp -v {} /build/ \;
|
||||||
|
exit 0
|
||||||
elif [ -e /usr/bin/dnf ]; then
|
elif [ -e /usr/bin/dnf ]; then
|
||||||
make rpm
|
make rpm
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
. /etc/lsb-release
|
|
||||||
cp -v /etc/lsb-release "/build/${DISTRIB_ID}.${DISTRIB_CODENAME}.${DISTRIB_RELEASE}.$(arch).FAILED"
|
|
||||||
fi
|
|
||||||
find /tmp/ \
|
find /tmp/ \
|
||||||
-type f \
|
-type f \
|
||||||
-name "*.rpm" \
|
-name "*.rpm" \
|
||||||
-not -name "*sym*" \
|
-not -name "*sym*" \
|
||||||
-not -name "*src.rpm" \
|
-not -name "*src.rpm" \
|
||||||
-exec cp -v {} /build/ \;
|
-exec cp -v {} /build/ \;
|
||||||
|
exit 0
|
||||||
elif [ -e /usr/bin/yum ]; then
|
elif [ -e /usr/bin/yum ]; then
|
||||||
. /opt/rh/devtoolset-9/enable
|
. /opt/rh/devtoolset-9/enable
|
||||||
make rpm
|
make rpm
|
||||||
|
|
@ -48,8 +51,13 @@ elif [ -e /usr/bin/yum ]; then
|
||||||
-not -name "*sym*" \
|
-not -name "*sym*" \
|
||||||
-not -name "*src.rpm" \
|
-not -name "*src.rpm" \
|
||||||
-exec cp -v {} /build/ \;
|
-exec cp -v {} /build/ \;
|
||||||
|
exit 0
|
||||||
elif [ -e /sbin/apk ]; then
|
elif [ -e /sbin/apk ]; then
|
||||||
echo "NOT YET SUPPORTED"
|
echo "NOT YET SUPPORTED"
|
||||||
elif [ -e /usr/sbin/pkg ]; then
|
elif [ -e /usr/sbin/pkg ]; then
|
||||||
echo "NOT YET SUPPORTED"
|
echo "NOT YET SUPPORTED"
|
||||||
|
else
|
||||||
|
echo "NOT YET SUPPORTED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,26 @@ import argparse
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
def build(containerfile,
|
def build(git_repo,
|
||||||
pkgdirpath,
|
branch,
|
||||||
branch):
|
containerfile,
|
||||||
|
pkgdirpath):
|
||||||
timestamp = time.time_ns()
|
timestamp = time.time_ns()
|
||||||
args = ['podman',
|
args = ['podman',
|
||||||
'build',
|
'build',
|
||||||
'--pull=always',
|
'--pull=always',
|
||||||
'--force-rm',
|
'--force-rm']
|
||||||
'-o',pkgdirpath,
|
if os.path.exists(git_repo):
|
||||||
'-f',containerfile,
|
git_repo = os.path.realpath(git_repo)
|
||||||
f'--build-arg=BRANCH={branch}',
|
args += ['-v',f'{git_repo}:/tmp/mergerfs.git:ro']
|
||||||
f'--build-arg=BUILD_TIMESTAMP={timestamp}',
|
args += ['--build-arg=GIT_REPO=/tmp/mergerfs.git']
|
||||||
'buildtools/']
|
else:
|
||||||
|
args += [f'--build-arg=GIT_REPO={git_repo}']
|
||||||
|
args += ['-o',pkgdirpath,
|
||||||
|
'-f',containerfile,
|
||||||
|
f'--build-arg=BRANCH={branch}',
|
||||||
|
f'--build-arg=BUILD_TIMESTAMP={timestamp}',
|
||||||
|
'buildtools/']
|
||||||
# TODO: Capture output and write to log
|
# TODO: Capture output and write to log
|
||||||
print(args)
|
print(args)
|
||||||
rv = subprocess.run(args)
|
rv = subprocess.run(args)
|
||||||
|
|
@ -62,7 +69,7 @@ def podman_cleanup():
|
||||||
def parse_args():
|
def parse_args():
|
||||||
p = argparse.ArgumentParser()
|
p = argparse.ArgumentParser()
|
||||||
p.add_argument('--target',
|
p.add_argument('--target',
|
||||||
default='debian.12.amd64')
|
default='debian:13.amd64')
|
||||||
p.add_argument('--pkgdirpath',
|
p.add_argument('--pkgdirpath',
|
||||||
default='build/pkgs/')
|
default='build/pkgs/')
|
||||||
p.add_argument('--branch',
|
p.add_argument('--branch',
|
||||||
|
|
@ -73,6 +80,9 @@ def parse_args():
|
||||||
p.add_argument('--cleanup',
|
p.add_argument('--cleanup',
|
||||||
required=False,
|
required=False,
|
||||||
action='store_true')
|
action='store_true')
|
||||||
|
p.add_argument('--git-repo',
|
||||||
|
required=True,
|
||||||
|
type=str)
|
||||||
|
|
||||||
return p.parse_args()
|
return p.parse_args()
|
||||||
|
|
||||||
|
|
@ -117,9 +127,10 @@ def main():
|
||||||
for containerfile in containerfiles:
|
for containerfile in containerfiles:
|
||||||
if args.cleanup:
|
if args.cleanup:
|
||||||
podman_cleanup()
|
podman_cleanup()
|
||||||
build(containerfile,
|
build(git_repo=args.git_repo,
|
||||||
args.pkgdirpath,
|
branch=args.branch,
|
||||||
args.branch)
|
containerfile=containerfile,
|
||||||
|
pkgdirpath=args.pkgdirpath)
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 debian:12 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 debian:12 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf debian:12 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 debian:12 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 debian:trixie as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 debian:trixie as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf debian:trixie as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 debian:trixie as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
FROM --platform=linux/i386 debian:11 as build
|
FROM --platform=amd64 debian:11 as build
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
RUN /tmp/install-build-pkgs
|
RUN /tmp/install-build-pkgs
|
||||||
ARG BUILD_TIMESTAMP=0
|
ARG BUILD_TIMESTAMP=0
|
||||||
ARG BRANCH=master
|
ARG GIT_REPO
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /build/ /
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:11.arm64
Normal file
10
buildtools/containerfiles/debian:11.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 debian:11 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:11.armhf
Normal file
10
buildtools/containerfiles/debian:11.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf debian:11 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
FROM --platform=linux/amd64 debian:11 as build
|
FROM --platform=i386 debian:11 as build
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
RUN /tmp/install-build-pkgs
|
RUN /tmp/install-build-pkgs
|
||||||
ARG BUILD_TIMESTAMP=0
|
ARG BUILD_TIMESTAMP=0
|
||||||
ARG BRANCH=master
|
ARG GIT_REPO
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /build/ /
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.amd64
Normal file
10
buildtools/containerfiles/debian:12.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.arm64
Normal file
10
buildtools/containerfiles/debian:12.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.armhf
Normal file
10
buildtools/containerfiles/debian:12.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
FROM --platform=linux/arm64 debian:11 as build
|
FROM --platform=i386 debian:12 as build
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
RUN /tmp/install-build-pkgs
|
RUN /tmp/install-build-pkgs
|
||||||
ARG BUILD_TIMESTAMP=0
|
ARG BUILD_TIMESTAMP=0
|
||||||
ARG BRANCH=master
|
ARG GIT_REPO
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /build/ /
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.amd64
Normal file
10
buildtools/containerfiles/debian:13.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.arm64
Normal file
10
buildtools/containerfiles/debian:13.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.armhf
Normal file
10
buildtools/containerfiles/debian:13.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
FROM --platform=linux/armhf debian:11 as build
|
FROM --platform=i386 debian:13 as build
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
RUN /tmp/install-build-pkgs
|
RUN /tmp/install-build-pkgs
|
||||||
ARG BUILD_TIMESTAMP=0
|
ARG BUILD_TIMESTAMP=0
|
||||||
ARG BRANCH=master
|
ARG GIT_REPO
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /build/ /
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.riscv64
Normal file
10
buildtools/containerfiles/debian:13.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:37 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 fedora:37 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf fedora:37 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 fedora:37 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:38 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 fedora:38 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf fedora:38 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 fedora:38 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:39 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:40 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:41 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:42 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 fedora:43 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 fedora:43 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
10
buildtools/containerfiles/fedora:40.amd64
Normal file
10
buildtools/containerfiles/fedora:40.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:40 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:40.arm64
Normal file
10
buildtools/containerfiles/fedora:40.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:40 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:41.amd64
Normal file
10
buildtools/containerfiles/fedora:41.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:41 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:41.arm64
Normal file
10
buildtools/containerfiles/fedora:41.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:41 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:42.amd64
Normal file
10
buildtools/containerfiles/fedora:42.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:42 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:42.arm64
Normal file
10
buildtools/containerfiles/fedora:42.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:42 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:43.amd64
Normal file
10
buildtools/containerfiles/fedora:43.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:43 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:43.arm64
Normal file
10
buildtools/containerfiles/fedora:43.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:43 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 quay.io/rockylinux/rockylinux:10 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 quay.io/rockylinux/rockylinux:10 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/riscv64 quay.io/rockylinux/rockylinux:10 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 quay.io/rockylinux/rockylinux:8 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 quay.io/rockylinux/rockylinux:8 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf quay.io/rockylinux/rockylinux:8 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 quay.io/rockylinux/rockylinux:8 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 quay.io/rockylinux/rockylinux:9 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 quay.io/rockylinux/rockylinux:9 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf quay.io/rockylinux/rockylinux:9 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 quay.io/rockylinux/rockylinux:9 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
10
buildtools/containerfiles/rockylinux:10.amd64
Normal file
10
buildtools/containerfiles/rockylinux:10.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:10.arm64
Normal file
10
buildtools/containerfiles/rockylinux:10.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:8.amd64
Normal file
10
buildtools/containerfiles/rockylinux:8.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:8 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:8.arm64
Normal file
10
buildtools/containerfiles/rockylinux:8.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:8 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:9.amd64
Normal file
10
buildtools/containerfiles/rockylinux:9.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:9 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:9.arm64
Normal file
10
buildtools/containerfiles/rockylinux:9.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:9 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 ubuntu:20.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 ubuntu:20.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf ubuntu:20.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 ubuntu:20.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 ubuntu:22.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 ubuntu:22.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf ubuntu:22.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 ubuntu:22.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/amd64 ubuntu:24.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/arm64 ubuntu:24.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/armhf ubuntu:24.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
FROM --platform=linux/i386 ubuntu:24.04 as build
|
|
||||||
COPY install-build-pkgs build-mergerfs /tmp/
|
|
||||||
RUN /tmp/install-build-pkgs
|
|
||||||
ARG BUILD_TIMESTAMP=0
|
|
||||||
ARG BRANCH=master
|
|
||||||
RUN /tmp/build-mergerfs $BRANCH
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /build/ /
|
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:22.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:24.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
27
buildtools/gen-containerfiles
Executable file
27
buildtools/gen-containerfiles
Executable file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
input_file="${1}"
|
||||||
|
|
||||||
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
|
# Skip empty lines
|
||||||
|
if [ -z "$line" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
image=$(echo "$line" | cut -d' ' -f1)
|
||||||
|
platform=$(echo "$line" | cut -d' ' -f2-)
|
||||||
|
|
||||||
|
echo "${image} ${platform}"
|
||||||
|
cat <<EOF > "containerfiles/${image##*/}.${platform}"
|
||||||
|
FROM --platform=${platform} ${image} as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs \$GIT_REPO \$BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
EOF
|
||||||
|
done < "$input_file"
|
||||||
|
|
@ -17,23 +17,20 @@ elif [ -e /usr/bin/dnf ]; then
|
||||||
dnf -y update
|
dnf -y update
|
||||||
dnf -y install \
|
dnf -y install \
|
||||||
git rpm-build gcc-c++ make which libatomic
|
git rpm-build gcc-c++ make which libatomic
|
||||||
dnf -y install lsb_release || true
|
|
||||||
elif [ -e /usr/bin/yum ]; then
|
elif [ -e /usr/bin/yum ]; then
|
||||||
yum -y update
|
yum -y update
|
||||||
yum -y install \
|
yum -y install \
|
||||||
git rpm-build gcc-c++ make which
|
git rpm-build gcc-c++ make which
|
||||||
yum -y install lsb_release || true
|
|
||||||
yum -y install centos-release-scl
|
yum -y install centos-release-scl
|
||||||
yum -y install devtoolset-9-gcc\*
|
yum -y install devtoolset-9-gcc\*
|
||||||
elif [ -e /usr/bin/zypper ]; then
|
elif [ -e /usr/bin/zypper ]; then
|
||||||
zypper update -y
|
zypper update -y
|
||||||
zypper install -y \
|
zypper install -y \
|
||||||
git rpm-build gcc-c++ make which \
|
git rpm-build gcc-c++ make which
|
||||||
lsb_release
|
|
||||||
elif [ -e /sbin/apk ]; then
|
elif [ -e /sbin/apk ]; then
|
||||||
apk add \
|
apk add \
|
||||||
abuild git gcc g++ make \
|
abuild git gcc g++ make \
|
||||||
linux-headers lsb-release
|
linux-headers
|
||||||
elif [ -e /usr/sbin/pkg ]; then
|
elif [ -e /usr/sbin/pkg ]; then
|
||||||
pkg install \
|
pkg install \
|
||||||
git gmake gcc
|
git gmake gcc
|
||||||
|
|
|
||||||
35
buildtools/target-containers.txt
Normal file
35
buildtools/target-containers.txt
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
debian:11 amd64
|
||||||
|
debian:11 arm64
|
||||||
|
debian:11 armhf
|
||||||
|
debian:11 i386
|
||||||
|
debian:12 amd64
|
||||||
|
debian:12 arm64
|
||||||
|
debian:12 armhf
|
||||||
|
debian:12 i386
|
||||||
|
debian:13 amd64
|
||||||
|
debian:13 arm64
|
||||||
|
debian:13 armhf
|
||||||
|
debian:13 i386
|
||||||
|
debian:13 riscv64
|
||||||
|
fedora:40 amd64
|
||||||
|
fedora:40 arm64
|
||||||
|
fedora:41 amd64
|
||||||
|
fedora:41 arm64
|
||||||
|
fedora:42 amd64
|
||||||
|
fedora:42 arm64
|
||||||
|
fedora:43 amd64
|
||||||
|
fedora:43 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:10 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:10 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:8 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:8 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:9 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:9 arm64
|
||||||
|
ubuntu:22.04 amd64
|
||||||
|
ubuntu:22.04 arm64
|
||||||
|
ubuntu:22.04 armhf
|
||||||
|
ubuntu:22.04 riscv64
|
||||||
|
ubuntu:24.04 amd64
|
||||||
|
ubuntu:24.04 arm64
|
||||||
|
ubuntu:24.04 armhf
|
||||||
|
ubuntu:24.04 riscv64
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
# Copyright (c) 2025, Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
AR ?= ar
|
AR ?= ar
|
||||||
CHMOD ?= chmod
|
CHMOD ?= chmod
|
||||||
CHOWN ?= chown
|
CHOWN ?= chown
|
||||||
|
|
@ -48,29 +62,18 @@ BUILDDIR := build
|
||||||
SRC_C = \
|
SRC_C = \
|
||||||
lib/buffer.c \
|
lib/buffer.c \
|
||||||
lib/crc32b.c \
|
lib/crc32b.c \
|
||||||
lib/debug.c \
|
|
||||||
lib/fuse_dirents.c \
|
lib/fuse_dirents.c \
|
||||||
lib/fuse_lowlevel.c \
|
|
||||||
lib/fuse_opt.c \
|
lib/fuse_opt.c \
|
||||||
lib/fuse_session.c \
|
lib/fuse_session.c \
|
||||||
lib/fuse_signals.c \
|
lib/fuse_signals.c \
|
||||||
lib/helper.c \
|
lib/helper.c \
|
||||||
lib/mount.c
|
lib/mount.c
|
||||||
SRC_CXX = \
|
SRC_CXX = $(wildcard lib/*.cpp)
|
||||||
lib/fuse.cpp \
|
|
||||||
lib/cpu.cpp \
|
|
||||||
lib/fuse_config.cpp \
|
|
||||||
lib/fuse_loop.cpp \
|
|
||||||
lib/fuse_msgbuf.cpp \
|
|
||||||
lib/pin_threads.cpp \
|
|
||||||
lib/format.cpp \
|
|
||||||
lib/node.cpp \
|
|
||||||
lib/maintenance_thread.cpp
|
|
||||||
|
|
||||||
OBJS_C = $(SRC_C:lib/%.c=$(BUILDDIR)/%.o)
|
OBJS := $(SRC_C:lib/%.c=$(BUILDDIR)/.objs/%.c.o)
|
||||||
OBJS_CXX = $(SRC_CXX:lib/%.cpp=$(BUILDDIR)/%.o)
|
OBJS += $(SRC_CXX:lib/%.cpp=$(BUILDDIR)/.objs/%.cpp.o)
|
||||||
DEPS_C = $(SRC_C:lib/%.c=$(BUILDDIR)/%.d)
|
DEPS := $(SRC_C:lib/%.c=$(BUILDDIR)/.objs/%.c.d)
|
||||||
DEPS_CXX = $(SRC_CXX:lib/%.cpp=$(BUILDDIR)/%.d)
|
DEPS += $(SRC_CXX:lib/%.cpp=$(BUILDDIR)/.objs/%.cpp.d)
|
||||||
|
|
||||||
CPPFLAGS ?=
|
CPPFLAGS ?=
|
||||||
CFLAGS ?= \
|
CFLAGS ?= \
|
||||||
|
|
@ -107,11 +110,11 @@ LDLIBS := \
|
||||||
all: $(BUILDDIR)/libfuse.a $(UTILS)
|
all: $(BUILDDIR)/libfuse.a $(UTILS)
|
||||||
|
|
||||||
$(BUILDDIR)/stamp:
|
$(BUILDDIR)/stamp:
|
||||||
$(MKDIR) -p $(BUILDDIR)
|
$(MKDIR) -p $(BUILDDIR)/.objs/
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
$(BUILDDIR)/libfuse.a: $(OBJS_C) $(OBJS_CXX)
|
$(BUILDDIR)/libfuse.a: $(OBJS)
|
||||||
$(AR) rcs $(BUILDDIR)/libfuse.a $(OBJS_C) $(OBJS_CXX)
|
$(AR) rcs $(BUILDDIR)/libfuse.a $(OBJS)
|
||||||
|
|
||||||
.PHONY: utils
|
.PHONY: utils
|
||||||
utils: mergerfs-fusermount mount.mergerfs
|
utils: mergerfs-fusermount mount.mergerfs
|
||||||
|
|
@ -126,10 +129,10 @@ $(BUILDDIR)/mount.mergerfs: $(BUILDDIR)/libfuse.a util/mount.mergerfs.c
|
||||||
|
|
||||||
mount.mergerfs: $(BUILDDIR)/mount.mergerfs
|
mount.mergerfs: $(BUILDDIR)/mount.mergerfs
|
||||||
|
|
||||||
$(BUILDDIR)/%.o: lib/%.c | $(BUILDDIR)/stamp
|
$(BUILDDIR)/.objs/%.c.o: lib/%.c | $(BUILDDIR)/stamp
|
||||||
$(CC) $(CFLAGS) $(FUSE_FLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) $(FUSE_FLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(BUILDDIR)/%.o: lib/%.cpp | $(BUILDDIR)/stamp
|
$(BUILDDIR)/.objs/%.cpp.o: lib/%.cpp | $(BUILDDIR)/stamp
|
||||||
$(CXX) $(CXXFLAGS) $(FUSE_FLAGS) -c $< -o $@
|
$(CXX) $(CXXFLAGS) $(FUSE_FLAGS) -c $< -o $@
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
@ -154,4 +157,4 @@ install: $(INSTALLUTILS)
|
||||||
|
|
||||||
.PHONY: objects strip utils install install-utils
|
.PHONY: objects strip utils install install-utils
|
||||||
|
|
||||||
-include $(DEPS_C) $(DEPS_CXX)
|
-include $(DEPS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue