kdanylov aka koder | 938f75f | 2018-06-27 01:52:44 +0300 | [diff] [blame] | 1 | # docker build -t ubuntu1604py36 |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 2 | FROM ubuntu:18.04 |
kdanylov aka koder | 938f75f | 2018-06-27 01:52:44 +0300 | [diff] [blame] | 3 | |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 4 | LABEL maintainer="Kostiantyn Danylov <kdanilov@mirantis.com>" version="2.0" |
Peter Lomakin | c453d4a | 2015-07-15 11:57:18 -0700 | [diff] [blame] | 5 | |
kdanylov aka koder | 938f75f | 2018-06-27 01:52:44 +0300 | [diff] [blame] | 6 | RUN apt-get update && \ |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 7 | DEBIAN_FRONTEND=noninteractive apt upgrade -yq && \ |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 8 | DEBIAN_FRONTEND=noninteractive apt install -yq vim git tmux build-essential \ |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 9 | python3 python3-dev python3-pip python3-venv python3-tk |
Peter Lomakin | c453d4a | 2015-07-15 11:57:18 -0700 | [diff] [blame] | 10 | |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 11 | COPY . /opt/wally |
kdanylov aka koder | a41bcfb | 2018-06-27 02:09:07 +0300 | [diff] [blame] | 12 | |
kdanylov aka koder | 3a16e30 | 2018-06-28 21:52:26 +0300 | [diff] [blame] | 13 | # git clone https://github.com/Mirantis/disk_perf_test_tool.git /opt/disk_perf_tool |
kdanylov aka koder | a41bcfb | 2018-06-27 02:09:07 +0300 | [diff] [blame] | 14 | |
| 15 | RUN git clone https://github.com/koder-ua/cephlib.git /opt/cephlib && \ |
kdanylov aka koder | 938f75f | 2018-06-27 01:52:44 +0300 | [diff] [blame] | 16 | 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 koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 18 | 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 koder | c3f79e0 | 2018-06-29 01:10:19 +0300 | [diff] [blame] | 22 | python3.6 -m pip install -U cryptography && \ |
| 23 | ln -s /opt/wally/scripts/wally /usr/bin && \ |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 24 | chmod a+x /opt/wally/scripts/wally |
kdanylov aka koder | a41bcfb | 2018-06-27 02:09:07 +0300 | [diff] [blame] | 25 | |
kdanylov aka koder | c3f79e0 | 2018-06-29 01:10:19 +0300 | [diff] [blame] | 26 | RUN apt purge -y python3-dev build-essential && apt -y autoremove |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame] | 27 | |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 28 | ENV PYTHONPATH /opt/cephlib:/opt/xmlbuilder3:/opt/agent:/opt/wally |
Peter Lomakin | c453d4a | 2015-07-15 11:57:18 -0700 | [diff] [blame] | 29 | |
kdanylov aka koder | f193a54 | 2018-06-28 21:21:10 +0300 | [diff] [blame] | 30 | CMD ["/bin/bash"] |