-
Notifications
You must be signed in to change notification settings - Fork 216
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
chore: run image as node user #81
chore: run image as node user #81
Conversation
Develop See merge request bitsensor/back-end/elastalert!35
Develop See merge request bitsensor/back-end/elastalert!36
Dockerfile
Outdated
@@ -45,5 +45,12 @@ COPY config/config.json config/config.json | |||
COPY rule_templates/ /opt/elastalert/rule_templates | |||
COPY elastalert_modules/ /opt/elastalert/elastalert_modules | |||
|
|||
# Add default rules directory | |||
# Set permission as unpriviledged user (1000:1000), compatible with Kubernetes | |||
RUN mkdir -p /opt/elastalert/rules/ \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test folder seems to be missing : /opt/elastalert/server_data/tests/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run elastalert image as unpriviledged user
Thank you for this merge request @jbdelpech 👍, it will be in the next beta release. |
This is available now in 3.0.0-beta.0. |
Run elastalert image as unpriviledged user, kubernetes compatible.
BTW, add a default empty dir in /opt/elastalert/rules.
If you have custom mounted volumes : it represents a BREAKING CHANGE for all images currently running as root in your cluster.
Before upgrading to this image : change your directory rights to 1000:1000 (or node:node into old elastalert image).
Feel free to test it, I packaged it from bitsensor/elastalert:2.0.1 with the changes of this PR :
solocal/elastalert:2.0.3
Do not use it in production, this image will be removed soon.