Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

support multi arch images #84

Merged

Conversation

youyongsong
Copy link
Contributor

remove GOARCH env in Dockerfile to support multi arch images.

Building multi arch images is easy with docker buildx:

  • enable docker buildx feature following the docs
  • run docker buildx create --name builder --use to create a builder instance(only need run once)
  • run following command to build and push muti arch images: docker buildx build --platform linux/amd64,linux/arm64 -t opsgenie/kubernetes-event-exporter:v0.9 --push .

remove `GOARCH` env in Dockerfile to support multi arch images.

Building multi arch images is easy with `docker buildx`:

* enable `docker buildx` feature following the [docs](https://docs.docker.com/buildx/working-with-buildx/)
* run `docker buildx create --name builder --use` to create a builder instance(only need run once)
* run following command to build and push muti arch images: `docker buildx build --platform linux/amd64,linux/arm64 -t opsgenie/kubernetes-event-exporter:v0.9 --push .`
@mustafaakin-atl mustafaakin-atl merged commit 6986683 into opsgenie:master Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants