-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support recent multiarch build on DockerHub
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# AUTOMATICALLY GENERATED | ||
# DO NOT EDIT THIS FILE DIRECTLY, USE /Dockerfile.template.erb | ||
|
||
# To set multiarch build for Docker hub automated build. | ||
FROM golang:alpine AS builder | ||
WORKDIR /go | ||
RUN apk add curl --no-cache | ||
RUN curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-aarch64/qemu-aarch64-static . | ||
|
||
FROM arm64v8/ruby:2.6-buster | ||
COPY --from=builder /go/qemu-aarch64-static /usr/bin/ | ||
LABEL maintainer "Fluentd developers <[email protected]>" | ||
LABEL Description="Fluentd docker image" Vendor="Fluent Organization" Version="1.8.0" | ||
ARG CROSS_BUILD_START="cross-build-start" | ||
ARG CROSS_BUILD_END="cross-build-end" | ||
RUN [ ${CROSS_BUILD_START} ] | ||
ENV TINI_VERSION=0.18.0 | ||
|
||
# Do not split this into multiple RUN! | ||
|
@@ -62,3 +72,4 @@ USER fluent | |
ENTRYPOINT ["tini", "--", "/bin/entrypoint.sh"] | ||
CMD ["fluentd"] | ||
|
||
RUN [ ${CROSS_BUILD_END} ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# AUTOMATICALLY GENERATED | ||
# DO NOT EDIT THIS FILE DIRECTLY, USE /Dockerfile.template.erb | ||
|
||
# To set multiarch build for Docker hub automated build. | ||
FROM golang:alpine AS builder | ||
WORKDIR /go | ||
RUN apk add curl --no-cache | ||
RUN curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static . | ||
|
||
FROM arm32v7/ruby:2.6-buster | ||
COPY --from=builder /go/qemu-arm-static /usr/bin/ | ||
LABEL maintainer "Fluentd developers <[email protected]>" | ||
LABEL Description="Fluentd docker image" Vendor="Fluent Organization" Version="1.8.0" | ||
ARG CROSS_BUILD_START="cross-build-start" | ||
|