Skip to content

Commit abe2d40

Browse files
ArunSaravananBalachandranrlhui
authored andcommitted
[docker-sonic-mgmt]: import patch to support 'become' and 'become_user' arguments in pytest-ansible (#4681)
1 parent 8a26951 commit abe2d40

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dockers/docker-sonic-mgmt/Dockerfile.j2

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ RUN apt-get update \
111111
RUN pip install azure-kusto-data==0.0.13 \
112112
azure-kusto-ingest==0.0.13
113113

114-
# Install pytest-ansible module
115114
RUN pip install wheel==0.33.6
116-
RUN pip install pytest-ansible==2.2.2
117115

118116
## Copy and install sonic-mgmt docker dependencies
119117
COPY \
@@ -131,6 +129,14 @@ RUN pip install ansible==2.8.12
131129

132130
RUN pip install pysubnettree
133131

132+
# Install pytest-ansible module with 'become', 'become_user' parameters support
133+
RUN git clone https://github.com/ansible/pytest-ansible.git \
134+
&& cd pytest-ansible \
135+
&& git checkout d33c025f070a9c870220a157cc5a999fda68de44 \
136+
&& python setup.py install \
137+
&& cd .. \
138+
&& rm -fr pytest-ansible
139+
134140
RUN mkdir /var/run/sshd
135141
EXPOSE 22
136142

0 commit comments

Comments
 (0)