Skip to content

Testfest deployment steps

Traun Leyden edited this page Aug 26, 2016 · 1 revision

Spin up AWS

  1. Kick off AWS cluster via http://uberjenkins.sc.couchbase.com/view/QE%20Dev/job/aws-create-cluster/
  2. Use 1 Couchbase servers and 2 Sync gateways
  3. For the stackname, use testfest or something similar
  4. NOTE: you can also use the command line tools in mobile-testkit, which is exactly what the Jenkins job calls
  5. Clone the mobile-testkit repo
  6. Edit ansible.cfg and set remote_user = centos
  7. Run source setup.sh to install deps and get into a python virtualenv
  8. Tell mobile-testkit the server layout you want to use by running export CLUSTER_CONFIG=resources/cluster_configs/2sg_1cbs
  9. Generate the server type to server ip mapping by running python libraries/provision/generate_pools_json_from_aws.py --stackname testfest -- double check this worked by running cat resources/pool.json and looking for the EC2 ip addresses
  10. Generate the cluster config by running python libraries/utilities/generate_clusters_from_pool.py -- double check this worked by running cat resources/cluster_configs/2sg_1cbs and looking for the EC2 ip addresses

Provision

  1. Provision cluster with python libraries/provision/install_deps.py && python libraries/provision/provision_cluster.py --server-version=4.1.1 --sync-gateway-commit=660b1c92fadce1a9c7e692dfe7c5b741772d1dd2 --sync-gateway-config-file=/path/to/sgconfig.json
  2. Replace the versions with the versions you want to use.
  3. Replace the path to your SG config
  4. NOTE: You can also install a sync gateway binary via --sync-gateway-version, see the mobile-testkit README for more info

Update SG Config + Reset databases

  1. Run python libraries/provision/install_sync_gateway.py --commit=660b1c92fadce1a9c7e692dfe7c5b741772d1dd2 --config-file-path=path/to/sgconfig.json
Clone this wiki locally