blob: fd978b8a35ca51ece56926e48e3f2017c17d6748 [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 && \
kdanylov aka koderc3f79e02018-06-29 01:10:19 +030022 python3.6 -m pip install -U cryptography && \
23 ln -s /opt/wally/scripts/wally /usr/bin && \
kdanylov aka koderf193a542018-06-28 21:21:10 +030024 chmod a+x /opt/wally/scripts/wally
kdanylov aka kodera41bcfb2018-06-27 02:09:07 +030025
kdanylov aka koderc3f79e02018-06-29 01:10:19 +030026RUN apt purge -y python3-dev build-essential && apt -y autoremove
kdanylov aka koder0c4c5522018-06-29 00:49:26 +030027
kdanylov aka koderf193a542018-06-28 21:21:10 +030028ENV PYTHONPATH /opt/cephlib:/opt/xmlbuilder3:/opt/agent:/opt/wally
Peter Lomakinc453d4a2015-07-15 11:57:18 -070029
kdanylov aka koderf193a542018-06-28 21:21:10 +030030CMD ["/bin/bash"]