eb47e85e38423d01a94e5028958b67c140c8b58b
[transportpce.git] / tests / Xtesting / INSTALL.txt
1 ## required steps on a brand new debian 12 system
2 # apt-get install git sudo
3 # adduser opnfv
4 # adduser opnfv sudo
5 # su - opnfv
6 git clone https://git.opendaylight.org/gerrit/transportpce
7 cd transportpce/tests/Xtesting
8 sudo apt-get install virtualenv
9 virtualenv xtesting -p python3 --system-site-packages
10 . xtesting/bin/activate
11 pip install ansible
12 ansible-galaxy install collivier.xtesting
13 ## Until https://github.com/collivier/ansible-role-xtesting/pull/19 is fixed, the following command
14 ## or any equivalent must be performed so that the playbook correctly performs Jenkins configuration
15 ## sed -i_ 's/port\:{/port: {/' ~/.ansible/roles/collivier.xtesting/templates/run.yaml.j2
16 ansible-galaxy collection install ansible.posix community.general community.grafana community.kubernetes community.docker community.postgresql
17 ansible-playbook site.yml
18 deactivate
19 sudo docker build -t 127.0.0.1:5000/tpce0 .
20 sudo docker run -d -p 5000:5000 --restart=always --name registry registry:2
21 sudo docker push 127.0.0.1:5000/tpce0