Merge "Update README.md deployment sample cmd"
authorCedric Ollivier <cedric.ollivier@orange.com>
Thu, 16 Nov 2023 14:58:32 +0000 (14:58 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 16 Nov 2023 14:58:32 +0000 (14:58 +0000)
1  2 
README.md

diff --combined README.md
+++ b/README.md
@@@ -174,37 -174,17 +174,38 @@@ COPY testcases.yaml /usr/lib/python3.8/
  CMD ["run_tests", "-t", "all"]
  ```
  
 +site.yml
 +
 +```yaml
 +---
 +- hosts:
 +    - 127.0.0.1
 +  roles:
 +    - role: collivier.xtesting
 +      project: weather
 +      registry_deploy: true
 +      repo: 127.0.0.1
 +      dport: 5000
 +      suites:
 +        - container: weather
 +          tests:
 +            - humidity
 +            - pressure
 +            - temp
 +            - half
 +```
 +
  ### make world
  
  Deploy your own Xtesting toolchain
  
  ```bash
- virtualenv xtesting
+ virtualenv xtesting -p python3 --system-site-packages
  . xtesting/bin/activate
  pip install ansible
  ansible-galaxy install collivier.xtesting
- ansible-galaxy collection install ansible.posix community.general community.grafana community.kubernetes
+ ansible-galaxy collection install ansible.posix community.general community.grafana \
+     community.kubernetes community.docker community.postgresql
  ansible-playbook site.yml
  deactivate
  rm -r xtesting
@@@ -216,7 -196,7 +217,7 @@@ Build your containe
  sudo docker build -t 127.0.0.1:5000/weather .
  ```
  
 -Publish your container on your local repository
 +Publish your container on your local registry
  
  ```bash
  sudo docker push 127.0.0.1:5000/weather