Open pipex opened 2 years ago
Get JF to create the link automatically, leaving it here for posterity https://jel.ly.fish/support-thread-1-0-0-front-cnv-ccbdaa5
[alanb128] This issue has attached support thread https://jel.ly.fish/361c986a-6f1d-4110-ba4e-1b38295cb763
@pipex I think that this works for me with the latest version atm. Can you give it an extra try and if it works for you as well we can close this.
Sure, let me check if I still have the testing code though
Oh, nevermind, I forgot about the reproduction steps above
Yep, seems to be working for me now. There is no more qemu-execve
though, did we change the way emulation works?
$ balena build --debug --deviceType raspberrypi3 --arch armv7hf --emulated
[debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,build,--deviceType,raspberrypi3,--arch,armv7hf,--emulated] length=8
[debug] Deprecation check: 6.83001 days since last npm registry query for next major version release date.
[debug] Will not query the registry again until at least 7 days have passed.
[Debug] Parsing input...
[Debug] Loading project...
[Debug] Resolving project...
[Info] No "docker-compose.yml" file found at "/Users/flalanne/Development/balena/support/with-path"
[Info] Creating default composition with source: "/Users/flalanne/Development/balena/support/with-path"
[Debug] Creating project...
[Build] Building services...
[Build] main Preparing...
[Info] Building for armv7hf/raspberrypi3
[Info] Docker Desktop detected (daemon architecture: "x86_64")
[Info] Docker itself will determine and enable architecture emulation if required,
[Info] without balena-cli intervention and regardless of the --emulated option.
[Debug] Found build tasks:
[Debug] main: build [.]
[Debug] Resolving services with [raspberrypi3|armv7hf]
[Debug] Found project types:
[Debug] main: Dockerfile.template
[Debug] Prepared tasks; building...
[Build] main Step 1/4 : FROM balenalib/raspberrypi3-alpine
[Build] main ---> 3d3155b4337a
[Build] main Step 2/4 : RUN echo "HELLO WORLD" | cat
[Build] main ---> [Warning] The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
[Build] main ---> Running in 9283ce9a82eb
[Build] main HELLO WORLD
[Build] main Removing intermediate container 9283ce9a82eb
[Build] main ---> 057feaa0e077
[Build] main Step 3/4 : ENV PATH="$PATH"
[Build] main ---> [Warning] The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
[Build] main ---> Running in 69197065b118
[Build] main Removing intermediate container 69197065b118
[Build] main ---> e9d1f6f88acc
[Build] main Step 4/4 : RUN echo "HELLO WORLD" | cat
[Build] main ---> [Warning] The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) and no specific platform was requested
[Build] main ---> Running in a6cbb85f1bce
[Build] main HELLO WORLD
[Build] main Removing intermediate container a6cbb85f1bce
[Build] main ---> a40f882538e9
[Build] main Successfully built a40f882538e9
[Build] main Successfully tagged with-path_main:latest
[Build] main Image size: 53.78 MB
[Build] Built 1 service in 0:21
[Success] Build succeeded!
On a second try, ends up that it still fails for me @pipex , I guess I did something wrong initially. In my test qemu was used. Any chance you are now on an arm device?
No, i tested with my x86 machine @thgreasi, weird, did I mess up the replication? 😕
Expected Behavior
The build succeeds
Actual Behavior
Build fails to find commands in PATH
Steps to Reproduce the Problem
Specifications