@@ -2,6 +2,18 @@ FROM ubuntu:20.04
2
2
3
3
RUN sed -i s/^deb-src.*// /etc/apt/sources.list
4
4
5
+ ARG TEMPEST_SOURCE=https://github.com/openstack/tempest
6
+ ARG TEMPEST_VERSION=master
7
+
8
+ ARG TEMPEST_PLUGIN_OCTAVIA_SOURCE=https://github.com/openstack/octavia-tempest-plugin
9
+ ARG TEMPEST_PLUGIN_OCTAVIA_VERSION=master
10
+
11
+ ARG TEMPEST_PLUGIN_DESIGNATE_SOURCE=https://github.com/openstack/designate-tempest-plugin
12
+ ARG TEMPEST_PLUGIN_DESIGNATE_VERSION=master
13
+
14
+ ARG TEMPEST_PLUGIN_IRONIC_SOURCE=https://github.com/openstack/ironic-tempest-plugin
15
+ ARG TEMPEST_PLUGIN_IRONIC_VERSION=master
16
+
5
17
RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git-core crudini jq iputils-ping && \
6
18
apt clean && \
7
19
pip3 --no-cache-dir install --upgrade pip setuptools && \
@@ -25,10 +37,12 @@ RUN crudini --set ~/.rally/rally.conf database connection sqlite:////home/rally/
25
37
26
38
RUN rally db recreate
27
39
28
- # Docker volumes have specific behavior that allows this construction to work.
29
- # Data generated during the image creation is copied to volume only when it's
30
- # attached for the first time (volume initialization)
31
- RUN rally verify create-verifier --name default --type tempest
40
+ RUN rally verify create-verifier --name default --type tempest --source $TEMPEST_SOURCE --version $TEMPEST_VERSION
41
+
42
+ # For simplicitiy, always install common extensions
43
+ RUN rally verify add-verifier-ext --source $TEMPEST_PLUGIN_OCTAVIA_SOURCE --version $TEMPEST_PLUGIN_OCTAVIA_VERSION
44
+ RUN rally verify add-verifier-ext --source $TEMPEST_PLUGIN_DESIGNATE_SOURCE --version $TEMPEST_PLUGIN_DESIGNATE_VERSION
45
+ RUN rally verify add-verifier-ext --source $TEMPEST_PLUGIN_IRONIC_SOURCE --version $TEMPEST_PLUGIN_IRONIC_VERSION
32
46
33
47
COPY bin/rally-verify-wrapper.sh /usr/bin/rally-verify-wrapper.sh
34
48
COPY bin/rally-extract-tests.sh /usr/bin/rally-extract-tests.sh
0 commit comments