Skip to content

Commit

Permalink
[sonic-mgmt]: Support virtual environment for ansible 2.0.0.2 (#4325)
Browse files Browse the repository at this point in the history
. env-201811/bin/activate

The ansible 2.0.0.2 will be used.
  • Loading branch information
xumia authored and rlhui committed Jul 7, 2020
1 parent db15b88 commit d289459
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RUN pip install ipaddr \
paramiko==2.1.2 \
passlib \
ipython==5.4.1 \
virtualenv \
&& git clone https://github.com/p4lang/scapy-vxlan.git \
&& cd scapy-vxlan \
&& python setup.py install \
Expand Down Expand Up @@ -147,4 +148,8 @@ RUN azure-cli_bundle_*/installer
# TODO: if azure-cli contains newer version azure-keyvault, remove this
RUN ~/lib/azure-cli/bin/python -m pip install azure-keyvault==0.3.7 -U

# Install Virtual Environment
RUN python -m virtualenv --system-site-packages env-201803
RUN env-201811/bin/pip install ansible==2.0.0.2

RUN git clone https://github.com/Azure/sonic-mgmt

0 comments on commit d289459

Please sign in to comment.