Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created January 23, 2015 21:00
Show Gist options
  • Save tleyden/841c701f2c509f9ede95 to your computer and use it in GitHub Desktop.
Save tleyden/841c701f2c509f9ede95 to your computer and use it in GitHub Desktop.

Launch EC2 instance

Go to the Cloudformation Wizard

Recommended values:

  • ClusterSize: 1 node
  • Discovery URL: as it says, you need to grab a new token from https://discovery.etcd.io/new and paste it in the box.
  • KeyPair: the name of the AWS keypair you want to use. If you haven't already, you'll want to upload your local ssh key into AWS and create a named keypair.

Create a volume directory

$ sudo mkdir -p /opt/sync_gateway/data
$ sudo chown -R core:core /opt/sync_gateway/data

Launch Sync Gateway

$ SYNC_GW_CONFIG=https://raw.githubusercontent.com/tleyden/sync_gateway/master/examples/gen_y_hackathon.json
$ sudo docker run --name sync_gw --net=host -v /opt/sync_gateway/data:/opt/sync_gateway/data tleyden5iwx/sync-gateway-coreos sync-gw-start -c master -g $SYNC_GW_CONFIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment