Skip to content

Instantly share code, notes, and snippets.

@curtisz
Created April 10, 2018 03:07
Show Gist options
  • Save curtisz/0a0d0afc9415b9725c106d3f552d5dcb to your computer and use it in GitHub Desktop.
Save curtisz/0a0d0afc9415b9725c106d3f552d5dcb to your computer and use it in GitHub Desktop.
Simple testkit init script
#!/bin/bash
# this is just the way i like it. do whatever you want.
# you'll need to put your AWS creds in ~/.aws/credentials or supply them here
# platform string is defined by the driver
TESTKIT_PLATFORM_LINUX="ubuntu_16.04"
# constructed inside the install script with:
# (for ubuntu):
# package_pattern="$(echo "$VERSION" | sed "s/-ee-/~ee~/g" | sed "s/-/.*/g").*-0~ubuntu"
# (for centos)
# package_pattern="$(echo "$VERSION" | sed "s/-ee-/\\\\.ee\\\\./g" | sed "s/-/.*/g").*el"
TESTKIT_ENGINE="ee-stable-17.03.2~ee~5"
# your ee link from https://store.docker.com
TESTKIT_ENGINE_REPO_URL="https://storebits.docker.com/ee/linux/sub-0a1b2c3c-dead-beef-cafe-0ddb411babe"
TESTKIT_INSTALL_TIMEOUT="10m"
TESTKIT_AWS_REGION="us-east-1"
# subnet you've created in the above region
TESTKIT_AWS_SUBNET="subnet-abcd0123"
# security group with traffic allowed between members (and SSH/HTTPS open to the outside)
TESTKIT_AWS_SECURITY_GROUP="sg-abcd0123"
# VPC in which every instance gets a public IP
TESTKIT_AWS_VPC_ID="vpc-abcd0123"
testkit create \
--driver aws \
--name foo-testkit \
--ucp \
--tag 2.1.3 \
--args '--admin-username admin --admin-password god --san ucp.example.com' \
--dtr \
--dtr-tag 2.2.3 \
--dtr-args '--ucp-node foo-testkit-ubuntu-2' \
--debug 6 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment