I am trying to run an application that consists of two separate Python-Sub-Applications on an resin.io enabled Raspberry Pi.
On a non resin.io enabled Raspberry Pi I am using systemctl for this and create two different services which are started during boot up of the device.
So I am looking for a way to use systemctl within a resin.ioDockerfile. Is this possible? Any sample of how such a dockerfile would look like is greatly appreciated!
I’d guess you can copy the service files in your Dockerfile to the and then use systemctl enable on them? The relevant sections cut out of a Dockerfile would be these:
ENV INITSYSTEM on
COPY myservice.service /lib/systemd/system/
RUN systemctl enable myservice.service