Skip to content

Commit

Permalink
[docker-sonic-mgmt]: import patch to support 'become' and 'become_use…
Browse files Browse the repository at this point in the history
…r' arguments in pytest-ansible (sonic-net#4681)
  • Loading branch information
ArunSaravananBalachandran authored and samaity committed Aug 6, 2020
1 parent e06e9ec commit bd65168
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ RUN apt-get update \
RUN pip install azure-kusto-data==0.0.13 \
azure-kusto-ingest==0.0.13

# Install pytest-ansible module
RUN pip install wheel==0.33.6
RUN pip install pytest-ansible==2.2.2

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

RUN pip install pysubnettree

# Install pytest-ansible module with 'become', 'become_user' parameters support
RUN git clone https://github.com/ansible/pytest-ansible.git \
&& cd pytest-ansible \
&& git checkout d33c025f070a9c870220a157cc5a999fda68de44 \
&& python setup.py install \
&& cd .. \
&& rm -fr pytest-ansible

RUN mkdir /var/run/sshd
EXPOSE 22

Expand Down

0 comments on commit bd65168

Please sign in to comment.