forked from yandex/yandex-tank
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
65 lines (58 loc) · 2.34 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
# Yandex.Tank
#
# VERSION 0.0.3
FROM ubuntu:xenial
MAINTAINER Alexey Lavrenuke <[email protected]>
# Version for desription
ARG VERSION
# You may specify tag instead of branch to build for specific tag
ARG BRANCH=master
LABEL Description="Fresh Yandex.Tank from github master branch with phantom" \
Vendor="Yandex" \
maintainer="[email protected]" \
YandexTank.version="${VERSION}" \
Telegraf.version="${TELEGRAF_VERSION}"
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update -q && \
apt-get install --no-install-recommends -yq \
sudo \
vim \
wget \
curl \
less \
iproute2 \
software-properties-common \
telnet \
atop \
openssh-client \
git \
python-pip && \
add-apt-repository ppa:yandex-load/main -y && \
apt-get update -q && \
apt-get install -yq \
phantom \
phantom-ssl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/*
ENV TELEGRAF_VERSION=1.4.3-1
RUN gpg --keyserver hkp://ha.pool.sks-keyservers.net --recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \
wget --progress=dot:giga https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION}_amd64.deb.asc && \
wget --progress=dot:giga https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION}_amd64.deb && \
gpg --batch --verify telegraf_${TELEGRAF_VERSION}_amd64.deb.asc telegraf_${TELEGRAF_VERSION}_amd64.deb && \
dpkg -i telegraf_${TELEGRAF_VERSION}_amd64.deb && \
rm -f telegraf_${TELEGRAF_VERSION}_amd64.deb*
ENV BUILD_DEPS="python-dev build-essential gfortran libssl-dev libffi-dev"
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -yq --no-install-recommends ${BUILD_DEPS} && \
pip install --upgrade setuptools && \
pip install --upgrade pip==9.0.3 && \
pip install https://api.github.com/repos/yandex/yandex-tank/tarball/${BRANCH} && \
apt-get autoremove -y ${BUILD_DEPS} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/* /root/.cache/*
COPY files/bashrc /root/.bashrc
COPY files/inputrc /root/.inputrc
VOLUME ["/var/loadtest"]
WORKDIR /var/loadtest
ENTRYPOINT ["/usr/local/bin/yandex-tank"]