-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (39 loc) · 1.22 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
FROM ubuntu
MAINTAINER Matt Baldwin (baldwin@stackpointcloud.com)
RUN \
apt-get update && apt-get -y --no-install-recommends install \
ca-certificates \
software-properties-common \
python-django-tagging \
python-simplejson \
python-memcache \
python-ldap \
python-cairo \
python-pysqlite2 \
python-support \
python-pip \
gunicorn \
supervisor \
nginx-light \
nodejs \
git \
curl \
openjdk-7-jre \
build-essential \
python-dev
WORKDIR /opt
RUN \
curl -s -o grafana.tar.gz "https://grafanarel.s3.amazonaws.com/builds/grafana-latest.linux-x64.tar.gz" && \
curl -s -o influxdb_latest_amd64.deb http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb && \
mkdir grafana && \
tar -xzf grafana.tar.gz --directory grafana --strip-components=1 && \
dpkg -i influxdb_latest_amd64.deb && \
echo "influxdb soft nofile unlimited" >> /etc/security/limits.conf && \
echo "influxdb hard nofile unlimited" >> /etc/security/limits.conf
ADD config.js /opt/grafana/config.js
ADD nginx.conf /etc/nginx/nginx.conf
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD config.toml /opt/influxdb/current/config.toml
VOLUME ["/opt/influxdb/shared/data"]
EXPOSE 80 8083 8086 2003
CMD ["supervisord", "-n"]