ofelia
ofelia copied to clipboard
How to run with env vars and without ini?
I want to use ofelia as a sidecar container in k8s where the commands should be executed in the ofelia pod itself. It works using an ini file but I want to be more flexible and use env vars or labels. Something like:
docker run -it --rm --label ofelia.job-local.my-test-job.schedule="@every 5s" --label ofelia.job-local.my-test-job.command="ls -la" mcuadros/ofelia:latest
gives me open /etc/ofelia/config.ini: no such file or directory
How do I do it right?