-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (34 loc) · 1.25 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
41
42
43
44
45
46
ARG PROMETHEUS_VERSION=3
FROM ghcr.io/lumeweb/promster:develop AS promster
FROM bitnami/prometheus:${PROMETHEUS_VERSION}
COPY --from=promster /bin/promster /usr/bin/promster
USER root
# Define build arguments (after FROM to be available during build)
ARG SUPERCRONIC_VERSION=0.2.33
# Install dependencies
RUN apt-get update && apt-get install -y \
wget \
curl \
ca-certificates \
whois \
&& rm -rf /var/cache/apt/*
# Install MinIO client
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc \
&& chmod +x mc \
&& mv mc /usr/local/bin/
# Install supercronic
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /usr/local/bin/supercronic \
&& chmod +x /usr/local/bin/supercronic
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
# Make entrypoint script executable
RUN chmod +x /entrypoint.sh
# Copy config-validator, backup-manager, and storage-manager scripts
COPY bin/config-validator /bin/config-validator
COPY bin/backup-manager /bin/backup-manager
COPY bin/storage-manager /bin/storage-manager
# Make scripts executable
RUN chmod +x /bin/config-validator
RUN chmod +x /bin/backup-manager
RUN chmod +x /bin/storage-manager
ENTRYPOINT [ "/entrypoint.sh" ]