Merge "Add copypastable quick start section"

This commit is contained in:
Zuul 2019-04-26 07:59:13 +00:00 committed by Gerrit Code Review
commit cbc3a1ff0c
1 changed files with 34 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Quick start guide
## Install Tobiko
sudo yum install python-virtualenv
virtualenv path/to/yuor/venv
source path/to/yuor/venv/bin/activate
pip install tobiko
@ -39,3 +39,36 @@ You can do it in one of two ways:
To run neutron tests, use the following command:
tox -e neutron
## Quick Start Setup&Run Template:
```bash
sudo yum install python-virtualenv.noarch -y
virtualenv ~/tobiko_venv && source ~/tobiko_venv/bin/activate
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install tox
sudo yum install gcc python-devel -y
git clone https://opendev.org/x/tobiko.git
cd tobiko
pip install -r extra-requirements.txt; pip install .
. ~/overcloudrc
wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
openstack image create "cirros" \
--file cirros-0.3.5-x86_64-disk.img \
--disk-format qcow2 --container-format bare \
--public
openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.tiny
cat > tobiko.conf <<EOF
[neutron]
floating_network='public'
[nova]
image='cirros'
flavor = 'm1.tiny'
EOF
tox -e neutron |& tee tox_neutron.out
```