blob: 444785fc4d707c27362fdb5c3f0de20f8e972a45 [file] [log] [blame]
kdanylov aka koder938f75f2018-06-27 01:52:44 +03001# docker build -t ubuntu1604py36
kdanylov aka koderf193a542018-06-28 21:21:10 +03002FROM ubuntu:18.04
kdanylov aka koder938f75f2018-06-27 01:52:44 +03003
kdanylov aka koderf193a542018-06-28 21:21:10 +03004LABEL maintainer="Kostiantyn Danylov <kdanilov@mirantis.com>" version="2.0"
Peter Lomakinc453d4a2015-07-15 11:57:18 -07005
kdanylov aka koder938f75f2018-06-27 01:52:44 +03006RUN apt-get update && \
kdanylov aka koderf193a542018-06-28 21:21:10 +03007 DEBIAN_FRONTEND=noninteractive apt upgrade -yq && \
kdanylov aka koder0c4c5522018-06-29 00:49:26 +03008 DEBIAN_FRONTEND=noninteractive apt install -yq vim git tmux build-essential \
kdanylov aka koderf193a542018-06-28 21:21:10 +03009 python3 python3-dev python3-pip python3-venv python3-tk
Peter Lomakinc453d4a2015-07-15 11:57:18 -070010
kdanylov aka koderf193a542018-06-28 21:21:10 +030011COPY . /opt/wally
kdanylov aka kodera41bcfb2018-06-27 02:09:07 +030012
kdanylov aka koder3a16e302018-06-28 21:52:26 +030013# git clone https://github.com/Mirantis/disk_perf_test_tool.git /opt/disk_perf_tool
kdanylov aka kodera41bcfb2018-06-27 02:09:07 +030014
15RUN git clone https://github.com/koder-ua/cephlib.git /opt/cephlib && \
kdanylov aka koder938f75f2018-06-27 01:52:44 +030016 git clone https://github.com/koder-ua/xmlbuilder3.git /opt/xmlbuilder3 && \
17 git clone https://github.com/koder-ua/agent.git /opt/agent && \
kdanylov aka koderf193a542018-06-28 21:21:10 +030018 python3.6 -m pip install pip --upgrade && \
19 cd /opt/wally && \
20 python3.6 -m pip install wheel && \
21 python3.6 -m pip install -r requirements.txt && \
22 ln -s scripts/wally /usr/bin && \
23 chmod a+x /opt/wally/scripts/wally
kdanylov aka kodera41bcfb2018-06-27 02:09:07 +030024
kdanylov aka koder0c4c5522018-06-29 00:49:26 +030025RUN
26
kdanylov aka koderf193a542018-06-28 21:21:10 +030027ENV PYTHONPATH /opt/cephlib:/opt/xmlbuilder3:/opt/agent:/opt/wally
Peter Lomakinc453d4a2015-07-15 11:57:18 -070028
kdanylov aka koderf193a542018-06-28 21:21:10 +030029CMD ["/bin/bash"]