-
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.
Browse files
Browse the repository at this point in the history
As QEMU on amd64 for building arm64 image cause SEGV issue, let's try to use arm64 runner directly. Signed-off-by: Kentaro Hayashi <[email protected]>
- Loading branch information
Showing
3 changed files
with
3 additions
and
22 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
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 |
---|---|---|
|
@@ -3,18 +3,9 @@ | |
|
||
# To set multiarch build for Docker hub automated build. | ||
FROM golang:alpine AS builder | ||
WORKDIR /go | ||
ENV QEMU_DOWNLOAD_SHA256 5db25cccb40ac7b1ca857653b883376b931d91b06ff34ffe70dcf6180bd07bb8 | ||
RUN apk add curl --no-cache | ||
RUN curl -sL -o qemu-6.0.0.balena1-aarch64.tar.gz https://github.com/balena-io/qemu/releases/download/v6.0.0%2Bbalena1/qemu-6.0.0.balena1-aarch64.tar.gz && echo "$QEMU_DOWNLOAD_SHA256 *qemu-6.0.0.balena1-aarch64.tar.gz" | sha256sum -c - | tar zxvf qemu-6.0.0.balena1-aarch64.tar.gz -C . && mv qemu-6.0.0+balena1-aarch64/qemu-aarch64-static . | ||
|
||
FROM --platform=linux/arm64 arm64v8/ruby:3.2-slim-bookworm | ||
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.16.7" | ||
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! | ||
|
@@ -78,4 +69,3 @@ USER fluent | |
ENTRYPOINT ["tini", "--", "/bin/entrypoint.sh"] | ||
CMD ["fluentd"] | ||
|
||
RUN [ ${CROSS_BUILD_END} ] |