summaryrefslogtreecommitdiffstats
path: root/docker/restapi
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-11-21 09:14:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-21 09:14:20 +0000
commite627ff2e267c1c59461571d23b89b21199e49737 (patch)
treec0cc2a4c8f2e5e13d20727ede051f7dc3431b4ae /docker/restapi
parent45ad7723d0e40e7c5475584fc2a5bc0b5ad3ef56 (diff)
parentc3b39a30e4c9cc5eafbe38c718f8f34721af5ebb (diff)
Merge "Fix rally db issue"
Diffstat (limited to 'docker/restapi')
-rw-r--r--docker/restapi/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/restapi/Dockerfile b/docker/restapi/Dockerfile
index dc0119a9e..81b79fd86 100644
--- a/docker/restapi/Dockerfile
+++ b/docker/restapi/Dockerfile
@@ -44,10 +44,13 @@ RUN apk --no-cache add --update 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/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
rm -r upper-constraints.txt thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
/src/os-faults /src/rally /src/fds/.git /src/vims-test/.git && \
+ mkdir -p /etc/rally && \
+ printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
+ mkdir -p /var/lib/rally/database && rally db create && \
apk del .build-deps
EXPOSE 5000
CMD ["functest_restapi"]