This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
49 lines (38 loc) · 1.96 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
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
# =============================================================================
# Dependencies
# =============================================================================
RUN apt-get -y update && \
apt-get -y install sudo git wget curl nano supervisor build-essential \
python-pip python-dev zip zlib1g-dev libssl-dev
# =============================================================================
# Watson IoT Statsd Connector module dependencies
# =============================================================================
RUN pip install ibmiotf==0.4.0 statsd bottle
# =============================================================================
# Install NodeJS for statsd
# =============================================================================
RUN curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - && \
apt-get install -y nodejs
# =============================================================================
# Install StatsD
# =============================================================================
RUN git clone https://github.com/etsy/statsd.git /src/statsd && \
cd /src/statsd && \
git checkout v0.8.0
# =============================================================================
# Install IoTF Connector for StatsD
# =============================================================================
ADD connector /opt/connector-statsd/
# =============================================================================
# Configuration
# =============================================================================
# Configure StatsD
ADD statsd/config.js /src/statsd/config.js
# Configure supervisord
ADD supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# =============================================================================
# Run
# =============================================================================
CMD ["/usr/bin/supervisord"]