forked from combaine/combaine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (30 loc) · 1.9 KB
/
Dockerfile
File metadata and controls
36 lines (30 loc) · 1.9 KB
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
FROM ubuntu:disco
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --force-yes --no-install-recommends \
build-essential python3-pip libcap-dev gcc python3-dev wget locales \
sudo less psmisc vim htop subversion openssh-client logrotate mawk \
bind9-host unbound lsof jq zstd jnettop util-linux strace tcpdump \
htop curl moreutils iptables moreutils iputils-tracepath util-linux \
git iputils-ping netcat-openbsd iproute2 sysstat traceroute jnettop \
dstat mtr-tiny tzdata libjemalloc2 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN python3 -m pip install --no-cache-dir -U pip Cython setuptools
RUN python3 -m pip install --no-cache-dir -U grpcio --no-binary grpcio
RUN python3 -m pip install --no-cache-dir -U grpcio_tools python-prctl
RUN python3 -m pip install --no-cache-dir -U msgpack ujson PyYAML requests ps_mem
RUN wget -O /usr/bin/combaine-client https://github.com/combaine/combaine-client/releases/download/v0.0.1/combaine-client-static-linux-amd64
RUN wget -O /usr/bin/ttail https://github.com/sakateka/ttail/releases/download/v0.0.2/ttail-static-linux-amd64
RUN ln -vsTf /bin/bash /bin/sh
RUN ln -vsTf /bin/bash /bin/dash
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
COPY plugins/aggregators/ /usr/lib/combaine/custom
RUN for f in /usr/lib/combaine/custom/*.py; do cythonize -3 -i $f; done
RUN mkdir -p /etc/combaine /var/log/combaine
RUN touch /etc/combaine/juggler.yaml /etc/combaine/combaine.yaml
COPY build/combainer /usr/bin/
COPY build/worker /usr/bin/combaine-worker
RUN chmod -c +x /usr/bin/combaine* /usr/bin/ttail
COPY aggregator/ /usr/lib/combaine/apps/aggregator/
COPY build/graphite /usr/lib/combaine/apps/
COPY build/solomon /usr/lib/combaine/apps/
COPY build/juggler /usr/lib/combaine/apps/