Skip to content

Instantly share code, notes, and snippets.

@gabrtv
Last active December 20, 2015 09:29
Show Gist options
  • Save gabrtv/6107881 to your computer and use it in GitHub Desktop.
Save gabrtv/6107881 to your computer and use it in GitHub Desktop.
Deis 0.0.4 Sneak Peek
$ deis register https://dev.deis.io/
username: gabrtv
password:
email: [email protected]
Registered gabrtv
Logged in as gabrtv
Found the following SSH public keys:
1) id_rsa.pub
2) deis_test.pub
Which would you like to use with Deis? 1
Uploading /Users/gabriel/.ssh/id_rsa.pub to Deis... done
Found EC2 credentials: AKIAJTVXXXXXXXXXXXXX
Import these credentials? (y/n) : y
Uploading EC2 credentials... done
Use `deis create --flavor=ec2-us-east-1` to create a new formation
$ deis flavors
ec2-sa-east-1
ec2-ap-southeast-2
ec2-ap-southeast-1
ec2-ap-northeast-1
ec2-eu-west-1
ec2-us-west-2
ec2-us-west-1
ec2-us-east-1
$ deis create --flavor=ec2-us-west-2
Creating formation... done, created nearby-darkroom
Git remote deis added
Creating runtime layer... done
Creating proxy layer... done
Use `deis layers:scale proxy=1 runtime=1` to scale a basic formation
$ time deis layers:scale proxy=2 runtime=2
Scaling layers... but first, coffee!
...done
Use `git push deis master` to deploy to your formation
real 4m12.415s
user 0m0.128s
sys 0m0.045s
$ deis layers
=== nearby-darkroom
proxy => recipe[deis],recipe[deis::proxy]
runtime => recipe[deis],recipe[deis::runtime]
$ deis nodes
=== nearby-darkroom
nearby-darkroom-runtime-1 runtime i-e9f51bde ec2-54-245-136-4.us-west-2.compute.amazonaws.com
nearby-darkroom-proxy-1 proxy i-ebf51bdc ec2-54-214-143-104.us-west-2.compute.amazonaws.com
nearby-darkroom-proxy-2 proxy i-93002fa7 ec2-54-244-133-141.us-west-2.compute.amazonaws.com
nearby-darkroom-runtime-2 runtime i-eaf51bdd ec2-54-214-118-161.us-west-2.compute.amazonaws.com
$ git push deis master
Counting objects: 146, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (122/122), done.
Writing objects: 100% (146/146), 21.54 KiB, done.
Total 146 (delta 84), reused 47 (delta 22)
Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.10.15
Using npm version: 1.2.30
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/express
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express/-/express-3.1.2.tgz
npm http 200 https://registry.npmjs.org/express/-/express-3.1.2.tgz
npm http GET https://registry.npmjs.org/connect/2.7.5
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.0
npm http GET https://registry.npmjs.org/cookie-signature/1.0.0
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/connect/2.7.5
npm http GET https://registry.npmjs.org/connect/-/connect-2.7.5.tgz
npm http 200 https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http GET https://registry.npmjs.org/cookie/-/cookie-0.0.5.tgz
npm http 200 https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http 200 https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/cookie-signature/1.0.0
npm http 200 https://registry.npmjs.org/send/0.1.0
npm http GET https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.0.tgz
npm http GET https://registry.npmjs.org/send/-/send-0.1.0.tgz
npm http 200 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.2.tgz
npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.5.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm WARN package.json [email protected] No repository field.
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/cookie/-/cookie-0.0.5.tgz
npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No readme data.
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm WARN package.json [email protected] No repository field.
npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.0.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.1.0.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.2.tgz
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/mime/1.2.6
npm http GET https://registry.npmjs.org/qs/0.5.1
npm http GET https://registry.npmjs.org/formidable/1.0.11
npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET https://registry.npmjs.org/bytes/0.2.0
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http 200 https://registry.npmjs.org/mime/1.2.6
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.6.tgz
npm http 200 https://registry.npmjs.org/bytes/0.2.0
npm http 200 https://registry.npmjs.org/qs/0.5.1
npm http GET https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz
npm http GET https://registry.npmjs.org/qs/-/qs-0.5.1.tgz
npm http 200 https://registry.npmjs.org/formidable/1.0.11
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
npm http 200 https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.1.1.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.6.tgz
npm http 200 https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.5.1.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
npm http 200 https://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.1.1.tgz
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
[email protected] node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
[email protected] /build/app/node_modules/express
[email protected] /build/app/node_modules/express/node_modules/connect
[email protected] /build/app/node_modules/express/node_modules/connect/node_modules/qs
[email protected] /build/app/node_modules/express/node_modules/connect/node_modules/formidable
[email protected] /build/app/node_modules/express/node_modules/cookie-signature
[email protected] /build/app/node_modules/express/node_modules/connect/node_modules/buffer-crc32
[email protected] /build/app/node_modules/express/node_modules/cookie
[email protected] /build/app/node_modules/express/node_modules/send
[email protected] /build/app/node_modules/express/node_modules/debug
[email protected] /build/app/node_modules/express/node_modules/send/node_modules/mime
[email protected] /build/app/node_modules/express/node_modules/fresh
[email protected] /build/app/node_modules/express/node_modules/range-parser
[email protected] /build/app/node_modules/express/node_modules/connect/node_modules/bytes
[email protected] /build/app/node_modules/express/node_modules/connect/node_modules/pause
[email protected] /build/app/node_modules/express/node_modules/commander
[email protected] /build/app/node_modules/express/node_modules/mkdirp
[email protected] /build/app/node_modules/express/node_modules/buffer-crc32
[email protected] /build/app/node_modules/express/node_modules/methods
Dependencies installed
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> web
-----> Compiled slug size: 4.7 MB
Launching... done, v2
-----> nearby-darkroom deployed to Deis
http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com
http://ec2-54-244-133-141.us-west-2.compute.amazonaws.com
To learn more, use `deis help` or visit http://deis.io
To [email protected]:nearby-darkroom.git
* [new branch] master -> master
$ curl -s http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com
Powered by Deis!
$ deis config
=== nearby-darkroom
PATH: bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin
$ deis config:set POWERED_BY=Twerking\!
=== nearby-darkroom
PATH: bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin
POWERED_BY: Twerking!
$ curl -s http://ec2-54-214-143-104.us-west-2.compute.amazonaws.com
Powered by Twerking!
$ deis help
This Deis command-line client issues API calls to a Deis controller.
Usage: deis <command> [--formation <formation>] [<args>...]
register register a new user with a controller
login login to a controller
logout logout from the current controller
Shortcut commands:
create create a new container formation
info print a represenation of the formation
scale scale container types (web=2, worker=1)
balance rebalance the container formation
converge force-converge all nodes in the formation
calculate recalculate and update the formation databag
destroy destroy a container formation
Subcommands, use `deis help [subcommand]` to learn more:
formations manage container formations
layers manage layers of nodes
nodes manage nodes of all types
containers manage the containers running on backends
providers manage cloud provider credentials
flavors manage node flavors on a provider
keys manage ssh keys
config manage environment variables for a formation
builds manage git-push or docker builds
releases manage a formation's release history
Use `git push deis master` to deploy to a formation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment