Skip to content

Commit a83307d

Browse files
committed
Move tempest source and version to build args
1 parent 36234f2 commit a83307d

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM ubuntu:20.04
22

33
RUN sed -i s/^deb-src.*// /etc/apt/sources.list
44

5+
ARG TEMPEST_SOURCE=https://github.com/openstack/tempest
6+
ARG TEMPEST_VERSION=master
7+
58
RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git-core crudini jq iputils-ping && \
69
apt clean && \
710
pip3 --no-cache-dir install --upgrade pip setuptools && \
@@ -25,7 +28,7 @@ RUN crudini --set ~/.rally/rally.conf database connection sqlite:////home/rally/
2528

2629
RUN rally db recreate
2730

28-
RUN rally verify create-verifier --name default --type tempest
31+
RUN rally verify create-verifier --name default --type tempest --source $TEMPEST_SOURCE --version $TEMPEST_VERSION
2932

3033
COPY bin/rally-verify-wrapper.sh /usr/bin/rally-verify-wrapper.sh
3134
COPY bin/rally-extract-tests.sh /usr/bin/rally-extract-tests.sh

bin/rally-verify-wrapper.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010
set -eux
1111

1212
artifacts_dir=/home/rally/artifacts
13-
tempest_source_default="--source /opt/tempest"
14-
15-
tempest_source="$tempest_source_default"
16-
if [ ! -z ${TEMPEST_SOURCE:+x} ]; then
17-
tempest_source="--source $TEMPEST_SOURCE"
18-
fi
19-
20-
tempest_version=""
21-
if [ ! -z ${TEMPEST_VERSION:+x} ]; then
22-
tempest_version="--version $TEMPEST_VERSION"
23-
fi
2413

2514
if [ ! -z ${TEMPEST_LOAD_LIST:+x} ]; then
2615
echo "$TEMPEST_LOAD_LIST" > ~/tempest-load-list
@@ -86,10 +75,6 @@ crudini --set ~/.rally/rally.conf openstack flavor_ref_alt_disk 1
8675

8776
rally deployment create --fromenv --name openstack
8877

89-
if [ "$tempest_source" != "$tempest_source_default" ] || [ "$tempest_version" != "" ]; then
90-
rally verify create-verifier --name tempest --type tempest $tempest_source $tempest_version
91-
fi
92-
9378
if [ -f ~/tempest-overrides.conf ]; then
9479
rally verify configure-verifier --reconfigure --extend ~/tempest-overrides.conf
9580
fi

0 commit comments

Comments
 (0)