This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (66 loc) · 2.28 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM debian:bullseye-slim
LABEL maintainer="frepke"
ENV ARCH amd64
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
## Versions
# https://portal.influxdata.com/downloads/
ENV INFLUXDB_VERSION=1.8.10
# https://grafana.com/grafana/download
ENV GRAFANA_VERSION=11.0.0
# https://portal.influxdata.com/downloads/
ENV CHRONOGRAF_VERSION=1.10.1
# Grafana database type
ENV GF_DATABASE_TYPE=sqlite3
WORKDIR /root
RUN apt-get -y update \
&& apt-get install -y \
adduser \
libfontconfig1 \
musl \
wget \
curl \
supervisor \
nano \
&& mkdir -p /var/log/supervisor \
# Install InfluxDB
&& wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VERSION}_${ARCH}.deb \
&& dpkg -i influxdb_${INFLUXDB_VERSION}_${ARCH}.deb \
&& rm influxdb_${INFLUXDB_VERSION}_${ARCH}.deb \
# Install Grafana
#
# Enterprise
#
&& wget --no-verbose https://dl.grafana.com/enterprise/release/grafana-enterprise_${GRAFANA_VERSION}_${ARCH}.deb \
&& dpkg -i grafana-enterprise_${GRAFANA_VERSION}_${ARCH}.deb \
&& rm grafana-enterprise_${GRAFANA_VERSION}_${ARCH}.deb \
#
# Pre-release
#
# && wget --no-verbose https://dl.grafana.com/oss/main/grafana_${GRAFANA_VERSION}_${ARCH}.deb \
# && dpkg -i grafana_${GRAFANA_VERSION}_${ARCH}.deb \
# && rm grafana_${GRAFANA_VERSION}_${ARCH}.deb \
# Install Chronograf
&& wget --no-verbose https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb \
&& dpkg -i chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb \
&& rm chronograf_${CHRONOGRAF_VERSION}_${ARCH}.deb \
# Cleanup
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY collectd/types.db /usr/share/collectd/types.db
# Configure InfluxDB
COPY influxdb/influxdb.conf /etc/influxdb/influxdb.conf
# Configure Grafana
# grafana database
# type=sqlite3
# enable anonymous access
# enabled = true
# specify organization name that should be used for unauthenticated users
# org_name = Freeview
# specify role for unauthenticated users
# org_role = Viewer
COPY grafana/grafana.ini /etc/grafana/grafana.ini
COPY start.sh /start.sh
RUN ["chmod", "+x", "/start.sh"]
CMD ["/start.sh"]