diff --git a/requirements.txt b/requirements.txt index e949f8f5ab..f471843cf3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0 -docker>=3.0.0 # Apache-2.0 Jinja2>=3.0.1 # BSD License (3 clause) GitPython>=1.0.1 # BSD License (3 clause) oslo.config>=5.1.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index e1185df8b4..d37daf377f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,6 +2,7 @@ bandit!=1.6.0,>=1.1.0 # Apache-2.0 bashate>=0.5.1 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 ddt>=1.0.1 # MIT +docker>=3.0.0 # Apache-2.0 hacking>=3.0.1,<3.1.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 stestr>=2.2.0 # Apache-2.0 diff --git a/tests/playbooks/pre.yml b/tests/playbooks/pre.yml index 01ded11b05..2e0e91bc63 100644 --- a/tests/playbooks/pre.yml +++ b/tests/playbooks/pre.yml @@ -42,6 +42,10 @@ - name: Install kolla command: "{{ virtualenv_path }}/bin/python -m pip install {{ zuul.project.src_dir }}" + - name: Install docker python library + command: "{{ virtualenv_path }}/bin/python -m pip install docker" + when: container_engine == "docker" + - name: Install podman python library command: "{{ virtualenv_path }}/bin/python -m pip install podman" when: container_engine == "podman"