Are resin base images still supported? I tried balena push to a fleet Dockerfile with a the following base image:
FROM resin/%%RESIN_MACHINE_NAME%%-debian:buster
but it no longer works.
I changed it to use balenalib:
balenalib/%%RESIN_MACHINE_NAME%%-debian:buster
and apt-get systemd systemd-sysv
instead of ENV INITSYSTEM
But now, the DHCP Server container is no longer able to operate:
dhcp-server Set static IP address
dhcp-server System has not been booted with systemd as init system (PID 1). Can’t operate.
dhcp-server Failed to connect to bus: Host is down
dhcp-server Start dnsmasq
dhcp-server System has not been booted with systemd as init system (PID 1). Can’t operate.
dhcp-server Failed to connect to bus: Host is down
dhcp-server Set static IP address
dhcp-server System has not been booted with systemd as init system (PID 1). Can’t operate.
dhcp-server Failed to connect to bus: Host is down
Is something missing/wrong with the Dockerfile?
Dockerfile:
FROM balenalib/%%RESIN_MACHINE_NAME%%-debian:buster
ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
RUN export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get upgrade && apt-get install -yq --no-install-recommends
systemd
systemd-sysv
dnsmasq
tcpdump
&& apt-get -y autoremove
&& apt-get -y autoclean
&& apt-get -y clean
&& rm -rf /var/lib/apt/lists/*
&& systemctl mask dnsmasq
WORKDIR /usr/src/app
COPY ./dhcp-server/dhcpcd.conf /etc/dhcpcd.conf
COPY ./dhcp-server/dnsmasq.conf /etc/dnsmasq.conf
COPY ./dhcp-server/start.sh .
COPY ./dhcp-server/eth0 .
CMD [“bash”, “start.sh”]
eth0
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
start.sh
#!/usr/bin/env bash
echo ‘Set static IP address’
cat eth0 >> /etc/network/interfaces
systemctl restart networking
echo ‘Start dnsmasq’
systemctl unmask dnsmasq
systemctl restart dnsmasq