Skip to content

Commit c689475

Browse files
Merge branch 'jbdelpech-run-image-as-unpriviledge-user' into develop
2 parents 6720985 + ed51c2c commit c689475

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,12 @@ COPY config/config.json config/config.json
4545
COPY rule_templates/ /opt/elastalert/rule_templates
4646
COPY elastalert_modules/ /opt/elastalert/elastalert_modules
4747

48+
# Add default rules directory
49+
# Set permission as unpriviledged user (1000:1000), compatible with Kubernetes
50+
RUN mkdir -p /opt/elastalert/rules/ /opt/elastalert/server_data/tests/ \
51+
&& chown -R node:node /opt
52+
53+
USER node
54+
4855
EXPOSE 3030
4956
ENTRYPOINT ["npm", "start"]

LICENSE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The 3-clause BSD license (Modified)
22
===================================
33

4-
Copyright © 2018, BitSensor B.V.
4+
Copyright © 2019, BitSensor B.V.
55

66
Redistribution and use in source and binary forms, with or without
77
modification, are permitted provided that the following conditions are met:
@@ -14,9 +14,9 @@ modification, are permitted provided that the following conditions are met:
1414
* Neither the name of BitSensor, BitSensor B.V. nor the
1515
names of its contributors may be used to endorse or promote products
1616
derived from this software without specific prior written permission.
17-
However, those names can be used when explicitely stating the use of
18-
the ElastAlert Server Plugin (which can be rephrased as the Alerting
19-
Plugin).
17+
However, those names can be used when explicitly stating the use of
18+
the 'ElastAlert Server Plugin' (which can be rephrased as the 'Alerting
19+
Plugin').
2020

2121
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND ANY
2222
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

0 commit comments

Comments
 (0)