-
Notifications
You must be signed in to change notification settings - Fork 138
Testfest deployment steps
Traun Leyden edited this page Aug 26, 2016
·
1 revision
- Kick off AWS cluster via http://uberjenkins.sc.couchbase.com/view/QE%20Dev/job/aws-create-cluster/
- Use 1 Couchbase servers and 2 Sync gateways
- For the stackname, use
testfest
or something similar - NOTE: you can also use the command line tools in mobile-testkit, which is exactly what the Jenkins job calls
- Clone the mobile-testkit repo
- Edit
ansible.cfg
and setremote_user = centos
- Run
source setup.sh
to install deps and get into a pythonvirtualenv
- Tell mobile-testkit the server layout you want to use by running
export CLUSTER_CONFIG=resources/cluster_configs/2sg_1cbs
- 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 runningcat resources/pool.json
and looking for the EC2 ip addresses - Generate the cluster config by running
python libraries/utilities/generate_clusters_from_pool.py
-- double check this worked by runningcat resources/cluster_configs/2sg_1cbs
and looking for the EC2 ip addresses
- 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
- Replace the versions with the versions you want to use.
- Replace the path to your SG config
- NOTE: You can also install a sync gateway binary via
--sync-gateway-version
, see the mobile-testkit README for more info
- Run
python libraries/provision/install_sync_gateway.py --commit=660b1c92fadce1a9c7e692dfe7c5b741772d1dd2 --config-file-path=path/to/sgconfig.json