-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
Running a command in Cloudpad will generally take the following form:
$ bundle exec cap <stage> <command> <option flags>
$ bundle exec cap production docker:add type=job
Install docker, etcd, and puppet on the launcher node
$ bundle exec cap production launcher:provision
Add a node to Cloudpad
$ bundle exec cap production nodes:add
Provisions all Ubuntu nodes to ensure docker is installed and puppet manifests have been applied.
$ bundle exec cap production nodes:provision
Builds the docker images specified by your configuration, tags them as latest, and pushes them to the private registry. If a type or group is specified, only images belonging to that type/group will be built and pushed. If no type or group is specified, all images are built and pushed.
$ bundle exec cap production docker:build [image=<image>] [type=<type>] [group=<group>] [skip_update_repos=1] [run_repo_scripts=1]
Stop all running containers and start again with latest image (on same hosts). Useful for code updates after a build.
$ bundle exec cap production docker:update [type=<type>] [group=<group>]
Build and update, in a single command.
$ bundle exec cap production docker:update [type=<type>] [group=<group>]
List all the running containers on all hosts.
$ bundle exec cap production docker:list
SSH into a container with the specified name.
$ bundle exec cap production docker:ssh name=<name>