Support opa-envoy linux/arm64 Docker Image
What is the underlying problem you're trying to solve?
I'm using opa-envoy, but it doesn't support linux/arm64 architecture. So I can't use this on Graviton 2 (AWS).
Describe the ideal solution
If there are no problem to build opa-envoy image for arm64, can you please support this? If not, It is issue and it have to be resolved.
There's no technical reason not to do it; it's just work that needs to be done. Would you be interested in adding the steps done with OPA in https://github.com/open-policy-agent/opa/commit/db4d9872ccf3ec1d25165d18ba7d8891af3e4276 with opa-envoy-plugin...?
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days.
can we please have this?
Contributions welcome! Happy to assist.
The setup here could also be simpler than what OPA does: since no cgo is needed, we could use ko.
Thank you @srenatus. I'll get started on this. CC: @Areefks
@srenatus Ko seems to do all of the heavy lifting of multiarch image builds. Should I replace all of these lines with Ko's CLI instead of docker build?
https://github.com/open-policy-agent/opa-envoy-plugin/blob/c37ea9d489b8f8144d449abbe294a1d6cde7ffa2/Makefile#L86-L111
@srenatus Do we need the whole replacing the Dockerfile arch business when we switch to Ko?
sed -e 's/GOARCH/$(GOARCH)/g' Dockerfile > .Dockerfile_$(GOARCH)
Where exactly is the docker build happening?
https://github.com/open-policy-agent/opa-envoy-plugin/blob/c37ea9d489b8f8144d449abbe294a1d6cde7ffa2/.github/workflows/post-tag.yaml#L23 this doesn't seem to be building the images, only the binaries?
https://github.com/open-policy-agent/opa/blob/main/.github/workflows/post-merge.yaml#L160 should do it, at least the -edge images.
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days.
+1