forked from guiderOrg/visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (49 loc) · 1.48 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
FROM ubuntu:18.04
MAINTAINER Yoonje Choi <yoonje.choi.dev@gmail.com>
ENV ARCH amd64
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
# Default versions
ENV INFLUXDB_VERSION 1.7.10
ENV GRAFANA_VERSION 6.6.2
# Clear previous sources
RUN rm /var/lib/apt/lists/* -vf
RUN apt-get -y update && \
apt-get -y dist-upgrade && \
apt-get -y install \
apt-utils \
ca-certificates \
curl \
git \
htop \
gnupg \
libfontconfig \
mysql-client \
mysql-server \
nano \
net-tools \
supervisor \
wget \
adduser \
libfontconfig1 && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs
# Configure Supervisord and base env
COPY supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
WORKDIR /root
RUN mkdir -p /var/log/supervisor && rm -rf .profile
COPY bash/profile .profile
# Install InfluxDB
RUN wget https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VERSION}_${ARCH}.deb && \
dpkg -i influxdb_${INFLUXDB_VERSION}_${ARCH}.deb && rm influxdb_${INFLUXDB_VERSION}_${ARCH}.deb
# Configure InfluxDB
COPY influxdb/influxdb.conf /etc/influxdb/influxdb.conf
# Install Grafana
RUN wget https://dl.grafana.com/oss/release/grafana_${GRAFANA_VERSION}_amd64.deb && \
dpkg -i grafana_${GRAFANA_VERSION}_amd64.deb && rm grafana_${GRAFANA_VERSION}_amd64.deb
# Configure Grafana
COPY grafana/grafana.ini /etc/grafana/grafana.ini
# Cleanup
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD ["/usr/bin/supervisord"]