-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
43 lines (34 loc) · 1.31 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
FROM ubuntu:xenial
MAINTAINER Arseniy Fomchenko <[email protected]>
ARG TANK_BRANCH=release
ARG APP_SETTINGS=app_settings.ini
ARG YASM_PLUGIN="https://api.github.yandex-team.ru/repos/load/yasm-plugin/tarball/master"
ARG PYPI="https://pypi.yandex-team.ru/simple/"
RUN apt-get update -q && \
apt-get install -yq \
python-pip \
vim \
git \
atop \
telnet \
expect
RUN mkdir -p /controlcenter
WORKDIR /controlcenter
ENV HOME /controlcenter
RUN pip install --upgrade setuptools==44.0.0 && \
pip install --upgrade pip && \
#https://github.com/pypa/pip/issues/5221
hash -r pip && \
pip install uwsgi && \
pip install git+https://github.com/yandex/yandex-tank.git@${TANK_BRANCH}#egg=yandextank && \
pip install -i ${PYPI} ${YASM_PLUGIN}
RUN git clone https://github.yandex-team.ru/load/yandex-tank-internal-pkg.git && \
mkdir -p /etc/yandex-tank && \
cp yandex-tank-internal-pkg/etc/yandex-tank/50-lunapark.yaml /etc/yandex-tank/50-lunapark.yaml
ENV APPLICATION_SETTINGS $APP_SETTINGS
COPY api.py api.yaml server.py uwsgi.ini requirements.txt $APP_SETTINGS /controlcenter/
RUN pip install -r requirements.txt
COPY docker_entrypoint.sh /usr/local/bin/
RUN chmod 777 -R /usr/local/bin/docker_entrypoint.sh
ENTRYPOINT ["docker_entrypoint.sh"]
EXPOSE 80