mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
The command '/bin/sh -c apk --update add git build-base' returned a non-zero code: 1 #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wibbbs on GitHub (Nov 30, 2019).
Trying to build on a raspberry pi. Cloned the repo to a local directory and ran the arm64 build command from you documentation. This is usally the error I see when the architecture is not right but I am pretty sure Raspberry Pi3 is Arm8 64. Output is below.
@qdm12 commented on GitHub (Nov 30, 2019):
Hi there, Thanks for posting here.
From this forum thread it seems like the Raspberry Pi 3 hardware is indeed ARM64v8 but the operating systems are 32 bit most of the time. So you have to build it for ARM32v7.
On the other hand, I'm setting up a build pipeline to build images for all platforms automatically (here), it should be done today so that you can
docker pull qmcgaw/ddns-updaterwithout taking care of your cpu architecture. You can join the Slack channel I'll post there when it's done (probably today).@Wibbbs commented on GitHub (Nov 30, 2019):
Awesome thank so much. I will try your new build when it is ready.
@Wibbbs commented on GitHub (Nov 30, 2019):
One more question where is the slack channel?
@qdm12 commented on GitHub (Nov 30, 2019):
It's at the Slack icon in the readme, maybe a bit too hidden indeed haha. Link is here too
@qdm12 commented on GitHub (Nov 30, 2019):
Unfortunately, it turns out cross compiling Docker images is not possible because of Go (yep very odd!).
As soon as I run it (with QEMU) for another platform (ARM or S390x or anything) than my native architecture amd64, my builds hangs on
go build -x ...every time at the same lineAnd the build will never finish (waited one hour just to be sure). I tried to fiddle with multiple Dockerfiles and glue everywhere but the only solution seems to be to cross build the Go binaries on the native architecture (using
go buildfeatures) and copy it to a final Scratch image.Now to do that I need to replace sqlite (which I wanted to do for a long time) with a Go written database thing. I'll link the PR to this issue.
So for now, use:
@qdm12 commented on GitHub (Nov 30, 2019):
Yet another twist, it works (takes ages) and builds it for ARM64v8 (not you) and ARM32v7 (you) although it fails for ARM32v6, S390X and other strange architectures. It's building it now on Travis CI (here, expect an hour 😆 ) and then you should be able to peacefully
docker pull qmcgaw/ddns-updater😄