I’m trying to install and run inference inside of a container that resides on a Raspberry PI 5. I’m trying to install hailort_4.18.0_arm64.deb into the container, but it seems like sudo and systemd are needed, so I’m pausing and wanting to understand what I need to install on the host (I’m assuming at least the pcie-driver) and what can be installed in the container (hailort-4.18.0-cp311-cp311-linux_aarch64.whl).
Does hailort_4.18.0_arm64.deb need to be installed in the container or on the host? Is it even possible to do inference from a container?
But it seems like hailort_4.18.0_arm64.deb needs systemd and even the Ubuntu base image doesn’t have it as I have:
FROM ubuntu:20.04
...
# Fake Sudo
RUN echo '#!/bin/sh\nexec "$@"' > /usr/bin/sudo && chmod +x /usr/bin/sudo
COPY ./hailort/hailort_4.18.0_arm64.deb /setup/hailort_4.18.0_arm64.deb
RUN dpkg -i /setup/hailort_4.18.0_arm64.deb
Gives me:
2.647 Setting up hailort (4.18.0) ...
2.989 System has not been booted with systemd as init system (PID 1). Can't operate.
2.990 Failed to connect to bus: Host is down
3.016 Failed. Exited with status 1. See /var/log/hailort.deb.log
3.058 dpkg: error processing package hailort (--install):
3.058 installed hailort package post-installation script subprocess returned error exit status 1
3.113 Errors were encountered while processing:
3.113 hailort