firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Dockerfile failure

Open guitarpicva opened this issue 6 months ago • 1 comments

Category

Other

Hardware

Not Applicable

Firmware Version

current

Description

Linux Ubuntu 22.04 LTS host system, docker build per: https://meshtastic.org/docs/software/linux-native/ Using the Dockerfile from the "firmware" distro since none was specified in the referenced Docker build instructions.

docker build -t meshtastic/device .

Then produces a failure on step 8/9 as below

 => ERROR [builder 8/9] RUN bash -o pipefail -c "source ./bin/activate &&  0.3s 
------                                                                          
 > [builder 8/9] RUN bash -o pipefail -c "source ./bin/activate && bash ./bin/build-native.sh":                                                                 
0.262 bash: ./bin/build-native.sh: No such file or directory                    
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 8)
Dockerfile:28
--------------------
  26 |     # trunk-ignore(terrascan/AC_DOCKER_00024): We would actually like these files to be owned by mesh tyvm
  27 |     COPY --chown=mesh:mesh . /tmp/firmware
  28 | >>> RUN bash -o pipefail -c "source ./bin/activate && bash ./bin/build-native.sh"
  29 |     RUN cp "/tmp/firmware/release/meshtasticd_linux_$(uname -m)" "/tmp/firmware/release/meshtasticd"
  30 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c bash -o pipefail -c \"source ./bin/activate && bash ./bin/build-native.sh\"" did not complete successfully: exit code: 127

If I comment out the steps after line 27 and tun the container, there is no file bin/build-native.sh as noted by the error.

Relevant log output

No response

guitarpicva avatar Aug 26 '24 11:08 guitarpicva