ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

How to run with env vars and without ini?

Open MikeMichel opened this issue 2 years ago • 0 comments

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?

MikeMichel avatar Feb 27 '23 18:02 MikeMichel