Skip to content

Commit f1cc6c3

Browse files
authored
Fix FTBFS on armhf (#456)
* armhf: fix FTBFS on armhf Closes: #455 Patch by Shizuo Fujita <[email protected]> The armhf build was failing with an execve error (exit code 127) during apk add curl. Seems it is compatibility issues between recent Alpine Linux versions (time64 syscalls) and QEMU emulation. Similar with https://gitlab.alpinelinux.org/alpine/aports/-/issues/17775 The failure was occurred in builder stage. For file downloads, we can use the same architecture as the host. Signed-off-by: Kentaro Hayashi <[email protected]> * Re generate armhf Dockerfile Signed-off-by: Kentaro Hayashi <[email protected]> --------- Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 5ebddb4 commit f1cc6c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.template.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FROM alpine:3.19
2323
<% else %>
2424
<% if is_armhf %>
2525
# To set multiarch build for Docker hub automated build.
26-
FROM golang:alpine AS builder
26+
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
2727
WORKDIR /go
2828
ENV QEMU_DOWNLOAD_SHA256 47ae430b0e7c25e1bde290ac447a720e2ea6c6e78cd84e44847edda289e020a8
2929
RUN apk add curl --no-cache

v1.16/armhf/debian/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# DO NOT EDIT THIS FILE DIRECTLY, USE /Dockerfile.template.erb
33

44
# To set multiarch build for Docker hub automated build.
5-
FROM golang:alpine AS builder
5+
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
66
WORKDIR /go
77
ENV QEMU_DOWNLOAD_SHA256 47ae430b0e7c25e1bde290ac447a720e2ea6c6e78cd84e44847edda289e020a8
88
RUN apk add curl --no-cache

0 commit comments

Comments
 (0)