Skip to content

Commit a0f41d7

Browse files
authored
Merge pull request #18 from stackhpc/upper-constraints
Use rally-openstack's upper constraints
2 parents 801964a + 5fbe471 commit a0f41d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ARG TEMPEST_PLUGIN_MANILA_VERSION=master
2020
ARG TEMPEST_PLUGIN_MAGNUM_SOURCE=https://github.com/openstack/magnum-tempest-plugin
2121
ARG TEMPEST_PLUGIN_MAGNUM_VERSION=master
2222

23+
ARG RALLY_OPENSTACK_SOURCE=https://github.com/stackhpc/rally-openstack.git
24+
ARG RALLY_OPENSTACK_VERSION=feature/non-admin-creds
25+
ARG RALLY_OPENSTACK_UPPER_CONSTRAINTS=https://raw.githubusercontent.com/stackhpc/rally-openstack/$RALLY_OPENSTACK_VERSION/upper-constraints.txt
26+
2327
RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git-core crudini jq iputils-ping && \
2428
apt clean && \
2529
pip3 --no-cache-dir install --upgrade pip setuptools && \
@@ -28,8 +32,7 @@ RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git
2832
echo "rally ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/00-rally-user && \
2933
mkdir /rally && chown -R rally:rally /rally
3034

31-
RUN pip install git+https://github.com/stackhpc/rally-openstack.git@feature/non-admin-creds --no-cache-dir && \
32-
pip3 install pymysql psycopg2-binary fixtures --no-cache-dir
35+
RUN pip3 install git+$RALLY_OPENSTACK_SOURCE@$RALLY_OPENSTACK_VERSION pymysql psycopg2-binary fixtures --no-cache-dir -c $RALLY_OPENSTACK_UPPER_CONSTRAINTS
3336

3437
COPY ./etc/motd_for_docker /etc/motd
3538
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /etc/bash.bashrc

0 commit comments

Comments
 (0)