Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Dockerfile.invocation-image: Fix for multi-arch #618

Merged
merged 1 commit into from Sep 17, 2019
Merged

Conversation

doanac
Copy link
Contributor

@doanac doanac commented Sep 16, 2019

The container used for compiling the application is only available on
amd64. This change uses a multi-arch golang container and also fixes
an issue where the apt cache can be out-of-date.

Fixes Bug #611
Verify by building on something like an rpi3.

Signed-off-by: Ricardo Salveti ricardo@foundries.io
Reported-by: Andy Doan andy@foundries.io

@@ -1,8 +1,8 @@
ARG ALPINE_VERSION=3.10.1

FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build
FROM golang:1.12.9 AS build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we want ot move to Golang 1.13, maybe you can bump version at same time ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a force-push with golang:1.13.0. Built on amd64 and arm to verify.

I'm guessing you guys already have the resources, but if you need access to aarch64 I'm sure you could get these guys to help you out: https://www.worksonarm.com/cluster/

The server they gave me was a Cavium which can't do armhf, but I've had good luck using the new AWS aarch64 instances and then running dockerd inside a 32bit LXD instance.

The container used for compiling the application is only available on
amd64. This change uses a multi-arch golang container and also fixes
an issue where the apt cache can be out-of-date.

Fixes Bug docker#611

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Reported-by: Andy Doan <andy@foundries.io>
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for your contribution @doanac ! 🎉

@rumpl rumpl merged commit 0947d07 into docker:master Sep 17, 2019
@doanac doanac deleted the bug611 branch September 17, 2019 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants