raspbernetes/multi-arch-images

how to write TARGETPLATFORM in istio-proxyv2 dockerfile?

DrowringMan opened this issue · 6 comments

i will build istio images on arm platform, how should i write this parameter in dockerfile

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.93. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

This has already been completed here https://github.com/raspbernetes/multi-arch-images/blob/master/build/istio-proxyv2/Dockerfile

Is there something you see missing? Unless this is for the envoy image?

this dockerfile 6 rows parameter, i write linux/arm64, but dockerfile 17 rows will not get , i will go write GOARM=7 in dockerfile 17 row,is ok?

When you use linux/arm64, the variable GOARM will be empty as it should be. That variable should only be set for 32 bit ARM versions and not for arm64 (64 bit). Perhaps you can share any possible error messages you are getting when you use the Dockerfile as is with linux/arm64 set as target platform?

Do note: when building this docker image, you need to use buildx in order to build docker images for other platforms (cross-build). See https://docs.docker.com/buildx/working-with-buildx/ and https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408 for more info.

@DrowringMan unfortunately envoy isn't going to be possible to build for armv7 as much as we've invested time to do so it's not possible at this current time.

problem is resolv, build success,thank you for your help @RobReus @xunholy