Mobilize allows you to create job schedules in Google Spreadsheets, which are then used to deploy code from Github to EC2 instances. The outputs from these scripts can be written to any endpoint, but this API will prioritize access to RDS, Google Spreadsheets, Google Files, and S3.
- Mobilize currently allows you to create a cluster of resque workers running Mobilize through EC2 with a redis connection through Elasticache.
- This will soon support running scheduled code deployments and data transfers scalably and asynchronously.
- create a
~/.mobilize
directory - create a subdirectory
~/.mobilize/config
.- copy mobrc into
~/.mobilize/config/mobrc
.- this file contains super secret usernames and passwords for all your services.
- copy mobrc into
- create a subdirectory
~/.mobilize/keys
- use
ssh-keygen
to create two keypairs calledbox.ssh
andgit.ssh
- store these keys under
~/.mobilize/keys
- you will use these keys to interact with github and ec2.
- store these keys under
- use
You'll need to sign up for:
- AWS
- Add your access key id and secret access key to
mobrc
- EC2
- set up a keypair named "mobilize", using the public key
box.ssh.pub
- Add inbound TCP access to HTTP (port 80) for the
default
security group.
- set up a keypair named "mobilize", using the public key
- Elasticache
- set up an instance of Redis elasticache in the
default
security group. - add the host and port for your Redis box to
mobrc
- add your chosen Resque username and password to
mobrc
- this will be set up during installation.
- set up an instance of Redis elasticache in the
- Add your access key id and secret access key to
- Google Drive
- add your email and password to
mobrc
- add your email and password to
- Github
- add your login (owner name) and password to
mobrc
- add your
git.ssh.pub
key to github as a public key.
- add your
- add your login (owner name) and password to
- Mongolab
- create a database named
mobilize-test
, with your chosen username and password. - add your host:port, username, and password to
mobrc
- create a database named
-
install RVM and Ruby 1.9.3 with:
\curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
-
install git with
sudo apt-get install git
orbrew install git
depending on your system -
install mobilize with:
git clone https://github.com/mobilize/mobilize.git && cd mobilize && rake install
- This will copy default configs to
~/.mobilize/config/config.yml
-
tail application logs with:
mob log tail
-
install your cluster:
mob cluster install
-
start your cluster (5 engines with 5 Resque workers each by default):
mob cluster start
-
monitor your workers
mob cluster view
-
terminate your cluster (5 engines with 5 Resque workers each):
mob cluster terminate
- launch the Mobilize console with:
mob console
- This will load all settings and allow you to browse the test
environment in
pry
.
- This will load all settings and allow you to browse the test
environment in