Skip to content

Commit 6206869

Browse files
committed
test/ansible-operator/Dockerfile: fix e2e ownerref issue
There is an issue in the latest ansible/ansible-runner image that causes the ansible-operator proxy not to be used to add owner references as expected. This commit ensures the latest versions of ansible and ansible-runner are installed.
1 parent 1b1ebc0 commit 6206869

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/ansible-operator/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
FROM ansible/ansible-runner
22

3+
RUN yum remove -y ansible python-idna
4+
RUN pip uninstall ansible-runner -y
5+
36
RUN pip install --upgrade setuptools
4-
RUN pip install urllib3==1.23
5-
RUN pip install openshift ansible-runner-http
7+
RUN pip install ansible ansible-runner openshift kubernetes ansible-runner-http
68

7-
RUN echo "localhost ansible_connection=local" > /etc/ansible/hosts \
9+
RUN mkdir -p /etc/ansible \
10+
&& echo "localhost ansible_connection=local" > /etc/ansible/hosts \
811
&& echo '[defaults]' > /etc/ansible/ansible.cfg \
912
&& echo 'roles_path = /opt/ansible/roles' >> /etc/ansible/ansible.cfg \
1013
&& echo 'library = /usr/share/ansible/openshift' >> /etc/ansible/ansible.cfg

0 commit comments

Comments
 (0)