[sonic-mgmt]: Support virtual environment for ansible 2.0.0.2 (#4325)

. env-201811/bin/activate

The ansible 2.0.0.2 will be used.
This commit is contained in:
xumia 2020-03-31 08:50:57 +08:00 committed by GitHub
parent 1a0067ede0
commit 2c97321545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \
@ -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