Force python2.7 when creating venv for refstack 29/49429/2
authorLinda Wang <wangwulin@huawei.com>
Thu, 21 Dec 2017 01:49:58 +0000 (01:49 +0000)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 21 Dec 2017 08:42:11 +0000 (09:42 +0100)
It applies part of "Fix rally db issue" [1] which is not
cherry-picked because it mainly focused on rally updates.

[1] https://gerrit.opnfv.org/gerrit/#/c/47555/

Change-Id: Ic6850e54860fe2b54a2199e1c3ed89d822ae6284
Signed-off-by: Linda Wang <wangwulin@huawei.com>
docker/restapi/Dockerfile

index bd3cdeb..12abaf7 100644 (file)
@@ -33,7 +33,7 @@ RUN apk --no-cache add --update nodejs nodejs-npm python3 sshpass \
     git clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
     git clone --depth 1 -b $VIMS_TAG https://github.com/boucherv-orange/clearwater-live-test /src/vims-test && \
     ln -s /src/tempest /src/refstack-client/.tempest && \
-    virtualenv --system-site-packages /src/tempest/.venv && \
+    virtualenv --system-site-packages /src/tempest/.venv --python=python2.7 && \
     (cd /src/promise/source && npm install) && \
     (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
     npm -g install npm@latest && \