forked from logzio/logzio-mysql-logs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:14.04
MAINTAINER Ofer Velich <[email protected]>
RUN apt-get update
RUN apt-get install -y python-pip
RUN apt-get install -y bc curl wget unzip
RUN pip install awscli
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.0.0-amd64.deb
RUN dpkg -i filebeat-5.0.0-amd64.deb
ENV LOGZIO_LOGS_DIR /var/log/logzio
ENV MYSQL_LOGS_DIR /var/log/mysql
ENV JAVA_HOME /usr/
ENV AWS_CREDENTIAL_FILE /root/.aws/credentials
ENV FILEBEAT_CONF /etc/filebeat/filebeat.yml
ENV MYSQL_ERROR_LOG_FILE ""
ENV MYSQL_SLOW_LOG_FILE ""
ENV MYSQL_LOG_FILE ""
RUN wget https://raw.githubusercontent.com/logzio/public-certificates/master/COMODORSADomainValidationSecureServerCA.crt -P /root
RUN mkdir -p /etc/pki/tls/certs
RUN cp /root/COMODORSADomainValidationSecureServerCA.crt /etc/pki/tls/certs/
RUN mkdir -p $MYSQL_LOGS_DIR
RUN mkdir -p $LOGZIO_LOGS_DIR
ADD scripts/go.bash /root/
ADD scripts/utils.sh /root/
ADD scripts/base.sh /root/
ADD files/filebeat.ymal $FILEBEAT_CONF
ADD files/filebeat-rds.ymal /root/
WORKDIR /root
CMD "/root/go.bash"