-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
40 lines (31 loc) · 1.39 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
38
39
40
FROM ubuntu:22.04
MAINTAINER Miri Bar <[email protected]>
RUN apt-get update
# RUN apt-get install -y python-pip
RUN apt-get install -y bc curl wget unzip less
# RUN pip install awscli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-8.5.3-amd64.deb
RUN dpkg -i filebeat-oss-8.5.3-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 wget https://raw.githubusercontent.com/logzio/public-certificates/master/SectigoRSADomainValidationSecureServerCA.crt -P /root
RUN mkdir -p /etc/pki/tls/certs
RUN cp /root/COMODORSADomainValidationSecureServerCA.crt /etc/pki/tls/certs/
RUN cp /root/SectigoRSADomainValidationSecureServerCA.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.yaml $FILEBEAT_CONF
ADD files/filebeat-rds.yaml /root/
WORKDIR /root
CMD "/root/go.bash"