Open sergiohinojosa opened 5 days ago
Hey @sergiohinojosa 👋🏽 Nice to see you here!
You can use the following to cross-compile:
make create-multiplatform-builder
make build-multiplatform
That will use docker buildx
to compile for platform=linux/amd64,linux/arm64
.
Hi @julianocosta89 nice to see you! long time no see! I hope you are doing great!
hey, thanks for your reply. I was working with a version that did not have the multiplatform builder in the Makefile. I just pulled everything and gave it a try, but unfortunately I'm getting a docker error that does not support exporting manifest lists. See below. Any hints?
make create-multiplatform-builder
docker buildx create --name otel-demo-builder --bootstrap --use --driver docker-container --config ./buildkitd.toml
[+] Building 2.3s (1/1) FINISHED
=> [internal] booting buildkit 2.3s
=> => pulling image moby/buildkit:buildx-stable-1 1.8s
=> => creating container buildx_buildkit_otel-demo-builder0 0.4s
otel-demo-builder
❯ make build-multiplatform
# Because buildx bake does not support --env-file yet, we need to load it into the environment first.
set -a; . ./.env.override; set +a && docker buildx bake -f docker-compose.yml --load --set "*.platform=linux/amd64,linux/arm64"
[+] Building 0.2s (1/1) FINISHED docker-container:otel-demo-builder
=> [internal] load local bake definitions 0.0s
=> => reading docker-compose.yml 22.31kB / 22.31kB 0.0s
ERROR: docker exporter does not currently support exporting manifest lists
make: *** [build-multiplatform] Error 1
Thanks and best
I'll ask for help here 😅 @puckpuck any ideas?
Question
When I deploy the images/pods built without changing any configuration to a linux system I get an error like the following:
exec ./build/install/opentelemetry-demo-ad-service/bin/AdService: exec format error
If I set as a global environment the default platform to be linux/amd64
DOCKER_DEFAULT_PLATFORM=linux/amd64
then I get an error in the shipping service since this is C++ and has more plattform dependencies.
`
then I tried to live without the shipping service by taking the build out from docker compose but the next svc fails
`
Any hints would be greately appretiated
Sergio