This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd /home/test/apache-jmeter-5.4.1 | |
| export KUBECONFIG=/root/kubeconfig | |
| Usage() { | |
| echo "Usage:" | |
| echo `basename $0` "<test-run-number> <edge-devices-count> <ramp-up-time-seconds> <iterations>" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run from a user which is a passwordless sudoer | |
| #---------------------------------------------- | |
| # Install assisted-installer and deploy cluster | |
| #---------------------------------------------- | |
| dnf install -y git make | |
| git clone https://github.com/openshift/assisted-test-infra.git | |
| cd assisted-test-infra | |
| # for the first time only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export BM_INVENTORY_SERVER=$(hostname) | |
| # to be run on assisted-test-infra env | |
| alias list-nodes='sudo virsh net-dhcp-leases test-infra-net' | |
| list-clusters() { | |
| curl -s http://$BM_INVENTORY_SERVER:6008/api/assisted-install/v1/clusters/ | jq '.[] | {ID: .id, Name: .name}' | |
| } | |
| list-hosts() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build CDI from source | |
| git clone git@github.com:kubevirt/containerized-data-importer.git | |
| cd containerized-data-importer/ | |
| make all | |
| # Replace $USER with quay, make sure images are public or provider a secret | |
| make manifests DOCKER_PREFIX=quay.io/$USER | |
| make push DOCKER_PREFIX=quay.io/$USER | |
| # Deploy CDI + CDI Operator on k8s cluster |