GoogleCloudPlatform / prometheus-engine

Google Cloud Managed Service for Prometheus libraries and manifests.
https://g.co/cloud/managedprometheus
Apache License 2.0
191 stars 89 forks source link

fix: Use upstream go image for build #992

Closed maxamins closed 3 months ago

maxamins commented 3 months ago

This fixes an issue with images on ARM64. Tested and verified fix on ARM64 and AMD64 machines.

Testing steps:

# Build images
docker buildx build --builder mybuilder -t gcr.io/$PROJECT_ID/prometheus-engine/operator:arm-test1 cmd/operator/Dockerfile --platform linux/arm64,linux/amd64 --build-arg QEMU_VERSION=latest --push

docker buildx build --builder mybuilder -t gcr.io/$PROJECT_ID/prometheus-engine/config-reloader:arm-test1 cmd/operator/Dockerfile --platform linux/arm64,linux/amd64 --build-arg QEMU_VERSION=latest --push

docker buildx build --builder mybuilder -t gcr.io/$PROJECT_ID/prometheus-engine/rule-evaluator:arm-test1 cmd/operator/Dockerfile --platform linux/arm64,linux/amd64 --build-arg QEMU_VERSION=latest --push
# Add built images to manifests/operator.yaml
kubectl apply -f manifests/operator.yaml