trapexit
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
28 additions and
0 deletions
-
buildtools/build-release
-
buildtools/containerfiles/centos.10.amd64
-
buildtools/containerfiles/centos.10.arm64
|
|
@ -62,6 +62,12 @@ def parse_args(): |
|
|
|
return p.parse_args() |
|
|
|
|
|
|
|
|
|
|
|
def should_skip(filename): |
|
|
|
if filename.endswith('~'): |
|
|
|
return True |
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
args = parse_args() |
|
|
|
print(args) |
|
|
@ -77,6 +83,8 @@ def main(): |
|
|
|
elif args.target == 'all': |
|
|
|
for root,dirnames,filenames in os.walk(basepath): |
|
|
|
for filename in filenames: |
|
|
|
if should_skip(filename): |
|
|
|
continue |
|
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
|
containerfiles.append(containerfile) |
|
|
|
else: |
|
|
@ -84,6 +92,8 @@ def main(): |
|
|
|
for filename in filenames: |
|
|
|
if args.target not in filename: |
|
|
|
continue |
|
|
|
if should_skip(filename): |
|
|
|
continue |
|
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
|
containerfiles.append(containerfile) |
|
|
|
|
|
|
|
|
|
@ -0,0 +1,9 @@ |
|
|
|
FROM --platform=linux/amd64 quay.io/centos/centos: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/ / |
|
|
@ -0,0 +1,9 @@ |
|
|
|
FROM --platform=linux/arm64 quay.io/centos/centos: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/ / |