gitpod-io / gitpod-io/leeway

Allow cross architecture docker builds with docker buildx

Open
#151 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
183
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe

I want to be able to build docker images with leeway that can target ARM64 cpus, without needing to switch to an ARM machine in development

Describe the behaviour you'd like

An option to specify target architecture for docker which can make use of the docker buildx extension. Leeway already allows specifying GOARCH to compile go binaries for ARM64 targets, a similar feature for docker builds would also be extremely helpful

Describe alternatives you've considered

Running the entire build on an ARM machine. I would assume that this would lead to the build automatically being created for an ARM target
However, this would require both devs and CI pipelines to switch/add a new machine to their workflows to build for ARM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating Leeway's current Docker build entry point and its existing GOARCH handling, then review how Docker buildx could expose a target architecture; done means a build can target ARM64 without an ARM machine and existing builds remain usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.