Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Latest commit

 

History

History
83 lines (65 loc) · 2.25 KB

run-options.md

File metadata and controls

83 lines (65 loc) · 2.25 KB

AVD Image options

Run image for testing with native ansible version

Run container and get a shell using Makefile command

$ make FLAVOR=3.8 run

➜  /projects git:(devel) ✗
➜  /projects git:(devel) ✗ python --version
Python 3.8.3
➜  /projects git:(devel) ✗ python3 --version
Python 3.8.3
➜  /projects git:(devel) ✗ ansible --version
ansible 2.9.6

Only available in current repository

Run container and get a shell using native docker command

$ docker run --rm -it -v ${HOME}/arista-ansible/docker-avd-base/:/projects \
        -v /etc/hosts:/etc/hosts avdteam/base:3.8 ;\

➜  /projects git:(devel) ✗
➜  /projects git:(devel) ✗ python --version
Python 3.8.3
➜  /projects git:(devel) ✗ python3 --version
Python 3.8.3
➜  /projects git:(devel) ✗ ansible --version
ansible 2.9.6

Run image for testing with custom ansible version

Run container with a specific version of ansible using Makefile command

$ make FLAVOR=3.8 ANSIBLE_VERSION=2.9.9 run

Requirement file not found, skipping...
Install ansible with version 2.9.9
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting ansible==2.9.9
[...]
Successfully installed ansible-2.9.9

Agent pid 52
➜  /projects git:(devel) ✗ python --version
Python 3.8.3
➜  /projects git:(devel) ✗ python3 --version
Python 3.8.3
➜  /projects git:(devel) ✗ ansible --version
ansible 2.9.9

Only available in current repository

Run container with a specific version of ansible using native docker command

$ docker run --rm -it -v ${HOME}/arista-ansible/docker-avd-base/:/projects \
        -e AVD_REQUIREMENTS=NONE \
        -e AVD_ANSIBLE=2.9.9 \
        -v /etc/hosts:/etc/hosts avdteam/base:3.8

Requirement file not found, skipping...
Install ansible with version 2.9.9
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting ansible==2.9.9
[...]
Successfully installed ansible-2.9.9

Agent pid 52
➜  /projects git:(devel) ✗ python --version
Python 3.8.3
➜  /projects git:(devel) ✗ python3 --version
Python 3.8.3
➜  /projects git:(devel) ✗ ansible --version
ansible 2.9.9