diff options
author | Andrej Kozemcak <andrej.kozemcak@pantheon.tech> | 2019-05-31 13:37:35 +0200 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2019-06-13 02:24:17 +0000 |
commit | d728297d6747c6a0ee07c8420ef3803616dc49dd (patch) | |
tree | 45e1e7d8d244bf5813de3928a1a5ffb1945d0d05 /scripts | |
parent | c7837f0e5956e751c43f909436a6365386ffb472 (diff) |
[TEST] - install test dependencies
Change-Id: Ic3a414573030d3b1fe8f34ff787428ed5449eeaf
Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Test.Dockerfile | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/scripts/Test.Dockerfile b/scripts/Test.Dockerfile index 025fa9d..04a77a6 100644 --- a/scripts/Test.Dockerfile +++ b/scripts/Test.Dockerfile @@ -1,22 +1,8 @@ FROM sweetcomb_img:latest -#Install utils for testing -RUN apt-get update; \ - apt-get install -y vim clang-format python3-pip python-pip; \ - apt-get install -y gdebi-core python3-dev python-dev libtool-bin; \ - apt-get install -y libcurl4-openssl-dev libpcre3-dev libssh-dev libxml2-dev libxslt1-dev cmake python-git; \ - pip3 install pexpect pyroute2 psutil; +# Install test dependence -WORKDIR /root/src +COPY . /root/src/sweetcomb +WORKDIR /root/src/sweetcomb -RUN git clone https://github.com/CiscoDevNet/ydk-gen.git - -WORKDIR /root/src/ydk-gen - -RUN pip install -r requirements.txt && \ - ./generate.py --libydk -i && ./generate.py --python --core && \ - pip3 install gen-api/python/ydk/dist/ydk*.tar.gz && \ - ./generate.py --python --bundle profiles/bundles/ietf_0_1_5.json && \ - ./generate.py --python --bundle profiles/bundles/openconfig_0_1_5.json && \ - pip3 install gen-api/python/ietf-bundle/dist/ydk*.tar.gz && \ - pip3 install gen-api/python/openconfig-bundle/dist/ydk*.tar.gz +RUN make install-test-extra |