Skip to content

Instantly share code, notes, and snippets.

@odewahn
Last active October 15, 2015 21:12
Show Gist options
  • Save odewahn/abb9df548fc18642e7db to your computer and use it in GitHub Desktop.
Save odewahn/abb9df548fc18642e7db to your computer and use it in GitHub Desktop.
  • Install this:

https://github.com/rackerlabs/carina/releases

  • Copy it to a directory on your path and make it executable
$ mv carina-darwin-amd64 /usr/local/bin/carina
$ chmod +x /usr/local/bin/carina
  • Setup environment variables
export RACKSPACE_USERNAME=<your username from the dashboard>
export RACKSPACE_APIKEY=<your key from the main dashboard>
  • List the clusters:
$ carina list
ClusterName	Username	Flavor		Image					Nodes	Status
lexington	makerpressadmin	container1-4G	564ce1eb-3519-4c2d-9ea4-9dc22b55e4de	7	active
  • Create a cluster
$ carina create brooklyn-test
  • Download the credentials so you can run docker commands locally. Be sure to make a directory for these, since it just downloads the files to wherever you run it:
$ mkdir creds-brooklyn-test
$ cd creds-brooklyn-test/
$ carina credentials brooklyn-test
source "docker.env"
# Run the above or use a subshell with your arguments to carina
# $( carina command... )
$ ls -la
total 64
drwxr-xr-x  10 apple  staff   340 Oct 15 11:51 .
drwx------+ 90 apple  staff  3060 Oct 15 11:51 ..
-rw-------   1 apple  staff  3177 Oct 15 11:51 README.md
-rw-------   1 apple  staff  1766 Oct 15 11:51 ca-key.pem
-rw-------   1 apple  staff  1119 Oct 15 11:51 ca.pem
-rw-------   1 apple  staff  1086 Oct 15 11:51 cert.pem
-rw-------   1 apple  staff   124 Oct 15 11:51 docker.cmd
-rw-------   1 apple  staff   184 Oct 15 11:51 docker.env
-rw-------   1 apple  staff   140 Oct 15 11:51 docker.ps1
-rw-------   1 apple  staff  1675 Oct 15 11:51 key.pem
  • Install tmpnb

https://raw.githubusercontent.com/rgbkrk/tmpnb/swarm-guide/docs/nature-on-swarm.md

Here's how to run it w/out creds-brooklyn-test

https://gist.github.com/rgbkrk/5988eee020aafa14a78d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment