-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
43 lines (32 loc) · 963 Bytes
/
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
41
42
43
FROM debian
ARG DB_HOST
ARG DB_PORT
ARG DB_PASSWORD
ARG DB_USER
ARG RELEEM_API_KEY
ARG MEMORY_LIMIT
ARG INSTANCE_TYPE
ARG AWS_REGION
ARG AWS_RDS_DB
ARG AWS_RDS_PARAMETER_GROUP
ARG RELEEM_ENV
ARG RELEEM_DEBUG
ARG RELEEM_HOSTNAME
ARG RELEEM_INTERVAL_COLLECT_ALL_METRICS
ARG RELEEM_QUERY_OPTIMIZATION
RUN apt update \
&& apt install -y \
curl \
mariadb-client
RUN curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o envsubst \
&& chmod +x envsubst \
&& mv envsubst /usr/local/bin
WORKDIR /opt/releem
RUN mkdir /opt/releem/conf
COPY docker/ /docker/
RUN curl -L -o releem-agent https://releem.s3.amazonaws.com/v2/releem-agent-$(arch) \
&& curl -L -o mysqlconfigurer.sh https://releem.s3.amazonaws.com/v2/mysqlconfigurer.sh \
&& chmod +x releem-agent mysqlconfigurer.sh /docker/entrypoint.sh
RUN mkdir -p /etc/mysql/releem.conf.d
ENTRYPOINT [ "/docker/entrypoint.sh" ]
CMD ["/opt/releem/releem-agent"]