-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
47 lines (38 loc) · 1.24 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
47
ARG FRM='testdasi/grafana-unraid-stack-base'
ARG TAG='latest'
FROM ${FRM}:${TAG}
ARG FRM
ARG TAG
ENV USE_HDDTEMP no
ENV INFLUXDB_HTTP_PORT 8086
ENV INFLUXDB_RPC_PORT 58083
ENV LOKI_PORT 3100
ENV PROMTAIL_PORT 9086
ENV GRAFANA_PORT 3006
EXPOSE ${GRAFANA_PORT}/tcp \
${LOKI_PORT}/tcp \
${PROMTAIL_PORT}/tcp \
${INFLUXDB_HTTP_PORT}/tcp \
${INFLUXDB_RPC_PORT}/tcp
## build note ##
RUN echo "$(date "+%d.%m.%Y %T") Built from ${FRM}:${TAG}" >> /build.info
## install static codes ##
RUN rm -Rf /testdasi \
&& mkdir -p /temp \
&& cd /temp \
&& curl -sL "https://github.com/testdasi/static-ubuntu/archive/main.zip" -o /temp/temp.zip \
&& unzip /temp/temp.zip \
&& rm -f /temp/temp.zip \
&& mv /temp/static-ubuntu-main /testdasi \
&& rm -Rf /testdasi/deprecated
## execute execute execute ##
RUN /bin/bash /testdasi/scripts-install/install-grafana-unraid-stack.sh
## debug mode (comment to disable) ##
#RUN /bin/bash /testdasi/scripts-install/install-debug-mode.sh
#ENTRYPOINT ["tini", "--", "/entrypoint.sh"]
## Final clean up ##
RUN rm -Rf /testdasi
## VEH ##
VOLUME ["/config"]
ENTRYPOINT ["tini", "--", "/static-ubuntu/grafana-unraid-stack/entrypoint.sh"]
HEALTHCHECK CMD /static-ubuntu/grafana-unraid-stack/healthcheck.sh