aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2023-11-28 11:11:51 +0000
committerMichal Nasiadka <mnasiadka@gmail.com>2023-12-04 10:54:26 +0000
commitfb94f3aff78f56b1f854951ff9cc8738c6180091 (patch)
tree5032a9495c524a08231efb66636dcf998784d012 /docker
parent2c2e601e78112b22444d5a7a3e58fc31d1fec7de (diff)
downloadkolla-fb94f3aff78f56b1f854951ff9cc8738c6180091.tar.gz
kolla-fb94f3aff78f56b1f854951ff9cc8738c6180091.zip
bifrost: Don't use env-setup
env-setup script removes epel-release and this breaks our CI template overrides. It is also more geared towards using in opendev CI - let's just install proper Ansible version instead. Change-Id: I68f645bef05dd15eba41479e3ef6713100fb87d0
Diffstat (limited to 'docker')
-rw-r--r--docker/bifrost/bifrost-base/Dockerfile.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/bifrost/bifrost-base/Dockerfile.j2 b/docker/bifrost/bifrost-base/Dockerfile.j2
index 2aa536cca..b44668726 100644
--- a/docker/bifrost/bifrost-base/Dockerfile.j2
+++ b/docker/bifrost/bifrost-base/Dockerfile.j2
@@ -40,8 +40,11 @@ RUN apt-get --error-on=any update && \
{%- else %}
RUN echo " " && \
{%- endif %}
- bash -c 'TOX_CONSTRAINTS_FILE=/requirements/upper-constraints.txt ./scripts/env-setup.sh && \
- ansible-playbook -vvvv -i /bifrost/playbooks/inventory/target /bifrost/playbooks/install.yaml \
+ bash -c 'export VENV=/var/lib/kolla/venv && \
+ $VENV/bin/pip install "ansible>=6,<7" && \
+ $VENV/bin/ansible-galaxy collection install -r /bifrost/ansible-collections-requirements.yml && \
+ ansible-playbook -vvvv -i /bifrost/playbooks/inventory/target \
+ /bifrost/playbooks/install.yaml \
-e git_branch={{ openstack_branch_slashed }} \
-e ipa_upstream_release={{ openstack_branch }} \
-e @/tmp/build_arg.yml && \