File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:latest as py-ea
2
- ARG ELASTALERT_VERSION=v0.1.39
2
+ ARG ELASTALERT_VERSION=v0.2.0b2
3
3
ENV ELASTALERT_VERSION=${ELASTALERT_VERSION}
4
4
# URL from which to download Elastalert.
5
5
ARG ELASTALERT_URL=https://github.com/Yelp/elastalert/archive/$ELASTALERT_VERSION.zip
@@ -45,5 +45,12 @@ COPY config/config.json config/config.json
45
45
COPY rule_templates/ /opt/elastalert/rule_templates
46
46
COPY elastalert_modules/ /opt/elastalert/elastalert_modules
47
47
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
+
48
55
EXPOSE 3030
49
56
ENTRYPOINT ["npm" , "start" ]
Original file line number Diff line number Diff line change 1
- v ?= v0.1.39
1
+ v ?= v0.2.0b2
2
2
3
3
all : build
4
4
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bitsensor/elastalert" ,
3
- "version" : " 2 .0.1 " ,
3
+ "version" : " 3 .0.0-beta.0 " ,
4
4
"description" : " A server that runs ElastAlert and exposes REST API's for manipulating rules and alerts." ,
5
5
"license" : " MIT" ,
6
6
"main" : " index.js" ,
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ export default class ProcessController {
48
48
} ) ;
49
49
50
50
// Redirect stdin/stderr to logger
51
- if ( indexCreate . stdout . toString ( ) !== '' ) {
51
+ if ( indexCreate . stdout && indexCreate . stdout . toString ( ) !== '' ) {
52
52
logger . info ( indexCreate . stdout . toString ( ) ) ;
53
53
}
54
- if ( indexCreate . stderr . toString ( ) !== '' ) {
54
+ if ( indexCreate . stderr && indexCreate . stderr . toString ( ) !== '' ) {
55
55
logger . error ( indexCreate . stderr . toString ( ) ) ;
56
56
}
57
57
You can’t perform that action at this time.
0 commit comments