sipcapture / homer5-docker

HOMER 5 Docker Containers (OBSOLETE)
http://sipcapture.org
40 stars 61 forks source link

question about trying to use cron-k8s as the image for a Kubernetes CronJob #61

Open davehorton opened 6 years ago

davehorton commented 6 years ago

Per the title, I'm using the Dockerfile in cron-k8s to build an image that I then deploy as a k8s CronJob. But, don't we need to actually exec `/opt/homer_mysql_rotate.pl' in run.sh somewhere around here

I'm unclear how it would work otherwise.

dougbtv commented 6 years ago

Hey Dave -- are you looking at this block in the deploy.yaml?

At the time I wrote that I decided to drop it because it was still an alpha feature, so... I'm unsure where I left off with it, or if I ever had it working, but decided to keep that commented out block for reference.

You're on the right track though -- you should be able to directly use that script and bypass the run. Unless the run.sh does some fancy pants copying of configurations (a kind of... pragmatic work-around in some of these cases).

Should wind up with something in the container spec looking something like...

command: ["/opt/homer_mysql_rotate.pl"]
args: ["--example", "probably_unused"]

If you do figure it out, a PR to bring it back into the repo would be awesome. Thanks!!

dougbtv commented 6 years ago

Alright, I'm reading through more now (like actually reading the file you linked), and.... I think you're right -- that run.sh is missing actually... running the cron job, good eye.