I’m trying to create a custom unifi controller container with a number of extras:
FROM jacobalberty/unifi:latest RUN apt-get update -y && apt-get upgrade -y && apt-get install incron nano curl -y ENTRYPOINT echo 'root' >> /etc/incron.allow && service incron start && /bin/bash
When I start this container, incron runs, but unifi does not.
I’ll try to explain what I’m looking for: a standard unifi controller with a local volume, incron to watch a certain file and start the incron service. The incron table is loaded from a local file and the service is running when I “ssh” into the container. Unifi however is not. Without the entrypoint line it does work, but the service does not run and on rebuilding I must always start it by hand.
FROM jacobalberty/unifi:latest RUN apt-get update -y && apt-get upgrade -y && apt-get install incron nano curl -y && echo 'root' >> /etc/incron.allow
Am I using ENTRYPOINT the correct way? I have also tried CMD but this results in the container not running.