[Feature] Add Docker buildx multi-arch support
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 816
- Forks
- 230
- Avg merge
- 6h 4m
- Merged PRs (30d)
- 1
Description
In order to support the packaging of a function multi-platform docker images, the FaaS CLI build command needs to provide new options to select the target platforms
Expected Behaviour
Ability to pass a list of target platforms to the docker build.
Current Behaviour
There's no option to pass this parameter.
Possible Solution
Add a new parameter --platform to the build command.
The supported platforms (e. g. linux/amd64,linux/arm/v7) should be included in the faas-cli build --help
Experimental docker features (buildx/buildkit) should be enabled implicitly.
Context
While building multi-platform in a CI, the build needed to be triggered outside the faas-cli using native docker commands.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the FaaS CLI build command and its Docker build integration. Check how command options are exposed in faas-cli build --help, then verify that a comma-separated platform list is accepted and that Docker buildx/buildkit is enabled for the build. Done means multi-platform images can be built through the CLI without invoking native Docker commands separately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100