Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow stroom-log-sender to use the stack .env file in preference to crontab.env #80

Open
stroomdev10 opened this issue Jan 28, 2020 · 1 comment

Comments

@stroomdev10
Copy link
Member

Has been started already.. https://github.com/gchq/stroom-resources/commits/use-supercronic

@at055612
Copy link
Member

The issue is that normal cron runs with a clean environment so it is not possible to access env vars passed into the container. Also cron is not best suited to running in docker as it runs as a daemon not a foreground process. Using supercronic https://github.com/aptible/supercronic means we can read env vars passed to the container.

Some work was done on this already, see branch linked above. It needs updating from 6.0 or master depending on where it came from (probably 6.0) and testing. I seem to remember there was some issue with the format of the log output, as i think supercronic wraps everything in its own log format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants