Integration over Invention
www.feedchirp.com
$ cat Procfile
web: bundle exec rails s -p $PORT
sidekiq: bundle exec sidekiq
clock: bundle exec clockwork lib/clock.rb
$ cat Procfile
web: bundle exec rails s -p $PORT
sidekiq: bundle exec sidekiq
clock: bundle exec clockwork lib/clock.rb
Service Dependencies:
- PostgreSQL
- Redis
- Twitter API
$ convox start
docker-compose.yml
Dockerfile
docker-compose.yml
bin/web
docker-compose.yml
docker-compose.yml
bin/sidekiq
docker-compose.yml
bin/clock
lib/clock.rb
$ convox deploy
Create App
$ convox apps create feedchirp
Creating app feedchirp... CREATING
$ convox apps info feedchirp
Name feedchirp
Status creating
Release (none)
Processes (none)
Provision services
$ convox services create postgres feedchirp-postgres
Creating feedchirp-postgres (postgres)... CREATING
$ convox services create redis feedchirp-redis
Creating feedchirp-redis (redis)... CREATING
docker-compose.yml
Set Production Environment
$ convox env set FOO=BAR BAZ=QUX
Updating environment... OK
Process Management
$ convox ps
ID NAME RELEASE CPU MEM STARTED COMMAND
b752f92764b1 clock RMOQPDOQZOY 1.02% 41.80% 9 minutes ago sh -c bin/clock
759186a0a457 sidekiq RMOQPDOQZOY 0.00% 46.04% 9 minutes ago sh -c bin/sidekiq
79cbc75f4910 web RMOQPDOQZOY 0.00% 43.32% 9 minutes ago sh -c bin/web
$ convox scale
NAME COUNT MEMORY PORTS
clock 1 256
postgres 0 256
redis 0 256
sidekiq 1 256
web 1 256 80
$ convox scale web --count 2 --memory 512
NAME COUNT MEMORY PORTS
sidekiq 1 256
web 2 512 80
clock 1 256
postgres 0 256
redis 0 256
$ convox ps
ID NAME RELEASE CPU MEM STARTED COMMAND
b752f92764b1 clock RMOQPDOQZOY 1.22% 41.80% 13 minutes ago sh -c bin/clock
759186a0a457 sidekiq RMOQPDOQZOY 11.36% 49.52% 13 minutes ago sh -c bin/sidekiq
335eb841f2ef web RMOQPDOQZOY 0.50% 21.47% 3 minutes ago sh -c bin/web
5bd19ffad7b3 web RMOQPDOQZOY 11.94% 21.43% 3 minutes ago sh -c bin/web
Admin Commands
$ convox run web ls
Dockerfile Procfile bin docker-compose.yml test
Gemfile README.md config lib tmp
Gemfile.lock Rakefile config.ru log vendor
LICENSE app db public
$ convox exec 335eb841f2ef ls
Dockerfile Procfile bin docker-compose.yml test
Gemfile README.md config lib tmp
Gemfile.lock Rakefile config.ru log vendor
LICENSE app db public
Logs
$ convox logs
web: Started GET "/" for 10.0.3.135 at 2015-10-14 21:20:33 +0000
web: Started GET "/" for 10.0.3.135 at 2015-10-14 21:20:33 +0000
web: Processing by HomeController#index as HTML
web: Processing by HomeController#index as HTML
web: Rendered home/index.html.erb within layouts/application (0.2ms)
web: Rendered home/index.html.erb within layouts/application (0.2ms)
web: Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
web: Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
Builds and Releases
$ convox builds
ID STATUS RELEASE STARTED ELAPSED
BQCQGTKIWXI complete RMOQPDOQZOY 1 hour ago 26s
BATIRIQTFXD complete RHAEGMPLKUP 2 hours ago 24s
BAMAPYZOLMC complete RGZVEVOJPDF 2 hours ago 3m34s
BQDHXVJRPHU complete RDTKJWKBTXL 13 hours ago 3m26s
BKORNTBGPGP complete RNSATMOHIQV 14 hours ago 3m28s
BVMYVERLJVD complete RMCASKYVLUS 15 hours ago 3m26s
BZJABILPFDM complete RFOKGLVSKRK 15 hours ago 10m7s
$ convox releases
ID CREATED STATUS
ROHSGMABIFH 57 minutes ago
RMOQPDOQZOY 1 hour ago active
RHAEGMPLKUP 2 hours ago
RGZVEVOJPDF 2 hours ago
RJVXHAJMOGH 5 hours ago
RBDMMAYYKFK 6 hours ago
REWCRJFOYCQ 6 hours ago
RWHLYJXDYTG 6 hours ago
Builds and Releases
$ convox builds
ID STATUS RELEASE STARTED ELAPSED
BQCQGTKIWXI complete RMOQPDOQZOY 1 hour ago 26s
BATIRIQTFXD complete RHAEGMPLKUP 2 hours ago 24s
BAMAPYZOLMC complete RGZVEVOJPDF 2 hours ago 3m34s
BQDHXVJRPHU complete RDTKJWKBTXL 13 hours ago 3m26s
BKORNTBGPGP complete RNSATMOHIQV 14 hours ago 3m28s
BVMYVERLJVD complete RMCASKYVLUS 15 hours ago 3m26s
BZJABILPFDM complete RFOKGLVSKRK 15 hours ago 10m7s
$ convox releases
ID CREATED STATUS
ROHSGMABIFH 57 minutes ago
RMOQPDOQZOY 1 hour ago active
RHAEGMPLKUP 2 hours ago
RGZVEVOJPDF 2 hours ago
RJVXHAJMOGH 5 hours ago
RBDMMAYYKFK 6 hours ago
REWCRJFOYCQ 6 hours ago
RWHLYJXDYTG 6 hours ago
docs.convox.com
invite.convox.com
convox.com
@goconvox
@mattmanning

Convox introduction by Matt Manning

  • 2.
  • 3.
  • 4.
    $ cat Procfile web:bundle exec rails s -p $PORT sidekiq: bundle exec sidekiq clock: bundle exec clockwork lib/clock.rb
  • 5.
    $ cat Procfile web:bundle exec rails s -p $PORT sidekiq: bundle exec sidekiq clock: bundle exec clockwork lib/clock.rb Service Dependencies: - PostgreSQL - Redis - Twitter API
  • 6.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
    Create App $ convoxapps create feedchirp Creating app feedchirp... CREATING $ convox apps info feedchirp Name feedchirp Status creating Release (none) Processes (none)
  • 20.
    Provision services $ convoxservices create postgres feedchirp-postgres Creating feedchirp-postgres (postgres)... CREATING $ convox services create redis feedchirp-redis Creating feedchirp-redis (redis)... CREATING
  • 21.
  • 22.
    Set Production Environment $convox env set FOO=BAR BAZ=QUX Updating environment... OK
  • 24.
    Process Management $ convoxps ID NAME RELEASE CPU MEM STARTED COMMAND b752f92764b1 clock RMOQPDOQZOY 1.02% 41.80% 9 minutes ago sh -c bin/clock 759186a0a457 sidekiq RMOQPDOQZOY 0.00% 46.04% 9 minutes ago sh -c bin/sidekiq 79cbc75f4910 web RMOQPDOQZOY 0.00% 43.32% 9 minutes ago sh -c bin/web $ convox scale NAME COUNT MEMORY PORTS clock 1 256 postgres 0 256 redis 0 256 sidekiq 1 256 web 1 256 80 $ convox scale web --count 2 --memory 512 NAME COUNT MEMORY PORTS sidekiq 1 256 web 2 512 80 clock 1 256 postgres 0 256 redis 0 256 $ convox ps ID NAME RELEASE CPU MEM STARTED COMMAND b752f92764b1 clock RMOQPDOQZOY 1.22% 41.80% 13 minutes ago sh -c bin/clock 759186a0a457 sidekiq RMOQPDOQZOY 11.36% 49.52% 13 minutes ago sh -c bin/sidekiq 335eb841f2ef web RMOQPDOQZOY 0.50% 21.47% 3 minutes ago sh -c bin/web 5bd19ffad7b3 web RMOQPDOQZOY 11.94% 21.43% 3 minutes ago sh -c bin/web
  • 25.
    Admin Commands $ convoxrun web ls Dockerfile Procfile bin docker-compose.yml test Gemfile README.md config lib tmp Gemfile.lock Rakefile config.ru log vendor LICENSE app db public $ convox exec 335eb841f2ef ls Dockerfile Procfile bin docker-compose.yml test Gemfile README.md config lib tmp Gemfile.lock Rakefile config.ru log vendor LICENSE app db public
  • 26.
    Logs $ convox logs web:Started GET "/" for 10.0.3.135 at 2015-10-14 21:20:33 +0000 web: Started GET "/" for 10.0.3.135 at 2015-10-14 21:20:33 +0000 web: Processing by HomeController#index as HTML web: Processing by HomeController#index as HTML web: Rendered home/index.html.erb within layouts/application (0.2ms) web: Rendered home/index.html.erb within layouts/application (0.2ms) web: Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms) web: Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
  • 27.
    Builds and Releases $convox builds ID STATUS RELEASE STARTED ELAPSED BQCQGTKIWXI complete RMOQPDOQZOY 1 hour ago 26s BATIRIQTFXD complete RHAEGMPLKUP 2 hours ago 24s BAMAPYZOLMC complete RGZVEVOJPDF 2 hours ago 3m34s BQDHXVJRPHU complete RDTKJWKBTXL 13 hours ago 3m26s BKORNTBGPGP complete RNSATMOHIQV 14 hours ago 3m28s BVMYVERLJVD complete RMCASKYVLUS 15 hours ago 3m26s BZJABILPFDM complete RFOKGLVSKRK 15 hours ago 10m7s $ convox releases ID CREATED STATUS ROHSGMABIFH 57 minutes ago RMOQPDOQZOY 1 hour ago active RHAEGMPLKUP 2 hours ago RGZVEVOJPDF 2 hours ago RJVXHAJMOGH 5 hours ago RBDMMAYYKFK 6 hours ago REWCRJFOYCQ 6 hours ago RWHLYJXDYTG 6 hours ago
  • 28.
    Builds and Releases $convox builds ID STATUS RELEASE STARTED ELAPSED BQCQGTKIWXI complete RMOQPDOQZOY 1 hour ago 26s BATIRIQTFXD complete RHAEGMPLKUP 2 hours ago 24s BAMAPYZOLMC complete RGZVEVOJPDF 2 hours ago 3m34s BQDHXVJRPHU complete RDTKJWKBTXL 13 hours ago 3m26s BKORNTBGPGP complete RNSATMOHIQV 14 hours ago 3m28s BVMYVERLJVD complete RMCASKYVLUS 15 hours ago 3m26s BZJABILPFDM complete RFOKGLVSKRK 15 hours ago 10m7s $ convox releases ID CREATED STATUS ROHSGMABIFH 57 minutes ago RMOQPDOQZOY 1 hour ago active RHAEGMPLKUP 2 hours ago RGZVEVOJPDF 2 hours ago RJVXHAJMOGH 5 hours ago RBDMMAYYKFK 6 hours ago REWCRJFOYCQ 6 hours ago RWHLYJXDYTG 6 hours ago
  • 29.
  • 30.