Could use some help here.
I’ve got a RAK7244 developer gateway - basically a Lora hat on top of a Raspberry Pi 4.
I’ve deployed the basicstation from here (https://github.com/balenalabs/basicstation) with no problem as a single container.
But when I try to do multi-container with both basicstation (https://github.com/balenalabs/basicstation) & datadog (https://github.com/balena-io-examples/balena-datadog) agent I’m getting a failing build. The datadog container succeeds in the build, but the basicstation fails even though I did no modification of the code that works as a single container deploy.
Suggestions appreciated!
My docker-compose.yaml:
version: '2'
services:
basicstation:
build: ./basicstation
privileged: true
datadog:
build: ./datadog
privileged: true
restart: always
pid: "host"
network_mode: "host"
labels:
io.resin.features.dbus: '1'
io.resin.features.balena-socket: '1'
And the build fail logs:
[basicstation] Step 6/7 : RUN make platform=rpi variant=std arch=aarch64
[basicstation] ---> Running in 453b5b6c3bf2
[basicstation] mkdir -p build-local/bin
[basicstation] gcc -std=gnu11 -Isrc -DCFG_prog_crc32 src/crc32.c -o build-local/bin/crc32
[basicstation] mkdir -p build-local/bin
[basicstation] gcc -std=gnu11 -Isrc -DCFG_prog_genkwcrcs src/genkwcrcs.c -o build-local/bin/genkwcrcs
[basicstation] build-local/bin/genkwcrcs $(cat src/kwlist.txt | sed -e '/^#/d;s/[ \t]\+#.*//') > build-local/temp-kwcrc.h
[basicstation] mv build-local/temp-kwcrc.h src/kwcrc.h
[basicstation] platform=rpi variant=std make -C deps/mbedtls
[basicstation] make[1]: *** deps/mbedtls: No such file or directory. Stop.
[basicstation]
[basicstation] makefile:67: recipe for target 'deps/mbedtls' failed
[basicstation] make: *** [deps/mbedtls] Error 2
[basicstation]
[basicstation] Removing intermediate container 453b5b6c3bf2
[basicstation] The command '/bin/sh -c make platform=rpi variant=std arch=aarch64' returned a non-zero code: 2
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: basicstation
[Error] Error: The command '/bin/sh -c make platform=rpi variant=std arch=aarch64' returned a non-zero code: 2
[Info] Built on arm01
[Error] Not deploying release.
Remote build failed