@@ -76,10 +76,34 @@ Here is a link about how to install and use virtualenv:
7676https://virtualenv.pypa.io/en/stable/
7777
7878### Ops tool installation
79+
80+ #### Python 3
7981``` sh
80- # Ops tool works on python2 only at the moment.
82+ # Make sure pip is up to date
83+ curl https://bootstrap.pypa.io/get-pip.py | python3
84+
85+ # Install virtualenv
86+ pip install --upgrade virtualenv
87+ pip install --upgrade virtualenvwrapper
88+
89+ echo ' export WORKON_HOME=$HOME/.virtualenvs' >> ~ /.bash_profile
90+ echo ' source /usr/local/bin/virtualenvwrapper.sh' >> ~ /.bash_profile
91+ source ~ /.bash_profile
92+
93+ # create virtualenv
94+ mkvirtualenv ops
95+ workon ops
96+
97+ # uninstall previous `ops` version (if you have it)
98+ pip uninstall ops --yes
8199
82- # Make sure pip is up to date (min version: 9.0.3)
100+ # install ops-cli v1.9.4 stable release
101+ pip install --upgrade ops-cli
102+ ```
103+
104+ #### Python 2
105+ ``` sh
106+ # Make sure pip is up to date
83107curl https://bootstrap.pypa.io/2.6/get-pip.py | python2
84108
85109# Install virtualenv
@@ -89,21 +113,26 @@ pip2 install -U virtualenv
89113virtualenv ops
90114source ops/bin/activate
91115
92- # install opswrapper v1.9 stable release
93- pip2 install --upgrade https://github.com/adobe/ ops-cli/releases/download/1.9/ops-1.9.tar.gz
116+ # uninstall previous `ops` version (if you have it)
117+ pip uninstall ops --yes
94118
95- # Optionally, install terraform to be able to access terraform plugin
96- # See https://www.terraform.io/intro/getting-started/install.html
97- # Also for pretty formatting of terraform plan output you can install https://github.com/coinbase/terraform-landscape (use gem install for MacOS)
119+ # install ops-cli v1.9.4 stable release
120+ pip2 install --upgrade ops-cli
98121```
99122
123+
124+ ### Terraform
125+ Optionally, install terraform to be able to access terraform plugin. See https://www.terraform.io/intro/getting-started/install.html
126+ Also for pretty formatting of terraform plan output you can install https://github.com/coinbase/terraform-landscape (use gem install for MacOS)
127+
128+
100129## Using docker image
101130
102131You can try out ` ops-cli ` , by using docker. The docker image has all required prerequisites (python, terraform, helm, git, ops-cli etc).
103132
104133To start out a container, running the latest ` ops-cli ` docker image run:
105134``` sh
106- docker run -it adobe/ops-cli:1.9 bash
135+ docker run -it adobe/ops-cli:1.9.4 bash
107136```
108137
109138After the container has started, you can start using ` ops-cli ` :
0 commit comments