elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

How to modify Timezone

Open WalterSyue opened this issue 7 years ago • 0 comments

I want to setting Asia/Taipei for timezone ? Can you tell me ~ How can i do !!

Dockerfile:

FROM alpine:latest as py-ea ARG ELASTALERT_VERSION=v0.1.36 ENV ELASTALERT_VERSION=${ELASTALERT_VERSION}

ARG ELASTALERT_URL=https://github.com/Yelp/elastalert/archive/$ELASTALERT_VERSION.zip ENV ELASTALERT_URL=${ELASTALERT_URL}

ENV ELASTALERT_HOME /opt/elastalert

WORKDIR /opt

RUN apk add --update --no-cache ca-certificates openssl-dev openssl python2-dev python2 py2-pip py2-yaml libffi-dev gcc musl-dev wget && \

wget -O elastalert.zip "${ELASTALERT_URL}" && \
unzip elastalert.zip && \
rm elastalert.zip && \
mv e* "${ELASTALERT_HOME}"

WORKDIR "${ELASTALERT_HOME}"

RUN sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.15/g' setup.py &&
python setup.py install &&
pip install -r requirements.txt

FROM node:alpine LABEL maintainer="BitSensor [email protected]"

ENV TZ Etc/UTC

RUN apk add --update --no-cache curl tzdata python2 make libmagic

COPY --from=py-ea /usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages COPY --from=py-ea /opt/elastalert /opt/elastalert COPY --from=py-ea /usr/bin/elastalert* /usr/bin/

WORKDIR /opt/elastalert-server COPY . /opt/elastalert-server

RUN npm install --production --quiet COPY config/elastalert.yaml /opt/elastalert/config.yaml COPY config/config.json config/config.json COPY rule_templates/ /opt/elastalert/rule_templates COPY elastalert_modules/ /opt/elastalert/elastalert_modules

EXPOSE 3030 ENTRYPOINT ["npm", "start"]

WalterSyue avatar Nov 22 '18 07:11 WalterSyue