adding device keywords did not help.
this is the dockerfile for one of the containers:
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:10
COPY empty_file tmp*/qemu-arm-stati[c] /usr/bin/
RUN install_packages avahi-utils libavahi-compat-libdnssd-dev curl git build-essential dialog libnss-mdns python xsltproc
RUN mkdir -p /root/demo-app
WORKDIR /root/demo-app
COPY . .
RUN npm install
RUN npm run build
RUN mkdir -p /root/.demo-app
COPY v360.svg /root/.demo-app/logo.svg
EXPOSE 3000
ENV IS_IN_DOCKER true
ENV demo-app_DISABLE_SERVER_UPDATES true
ENV demo-app_NODE_CONFIG_DIR /data/
ENV UDEV=on
COPY scripts/start.sh .
CMD ["bash", "start.sh"]
ENTRYPOINT /root/demo-app/bin/demo-app-server --securityenabled
this is my docker-template:
version: '2.1'
networks: {}
volumes:
resin-data: {}
services:
demo-app:
container_name: demo-app
build: ./demo-app-server-node
restart: always
network_mode: host
volumes:
- 'resin-data:/data'
privileged: true
labels:
io.balena.features.dbus: '1'
io.balena.features.balena-api: '1'
io.balena.features.supervisor-api: '1'
io.balena.features.sysfs: '1'
ports:
- "80:3000"
devices:
- "/dev:/dev"
cap_add:
- NET_ADMIN
- SYS_RAWIO
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
wifi-connect:
build: ./wifi-connect
network_mode: "host"
privileged: true
labels:
io.balena.features.dbus: '1'
devices:
- "/dev/i2c-1:/dev/i2c-1"
cap_add:
- NET_ADMIN
- SYS_RAWIO
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
I’ve now noticed that I am getting this error in console of the OS when connected via serial debug.
[47194.041533] bone-pinmux-helper ocp:P8_19_pinmux: Failed to find state gpio