tsuru contains three clients: tsuru, tsuru-admin and crane.
This document describes how you can install those clients, using pre-compiled binaries or building them from source.
Using homebrew (Mac OS X only)
Pre-built binaries (Linux and Mac OS X)
Build from source (Linux and Mac OS X)
Mavericks note: Go 1.1 fails to compile with clang. In order to install Tsuru on Mavericks, you will need to install Go 1.2rc, running brew install go --devel.
If you use Mac OS X and homebrew, you may use a custom tap to install tsuru, crane and tsuru-admin. First you need to add the tap:
$ brew tap globocom/homebrew-tsuru
Now you can install tsuru, tsuru-admin and crane:
$ brew install tsuru
$ brew install tsuru-admin
$ brew install crane
Whenever a new version of any of tsuru’s clients is out, you can just run:
$ brew update
$ brew upgrade <formula> # tsuru/tsuru-admin/crane
For more details on taps, check homebrew documentation.
NOTE: Tsuru requires Go 1.1 or higher. Make sure you have the last version of Go installed in your system.
Ubuntu users can install Tsuru clients using apt-get and the Tsuru PPA. You’ll need to add the PPA repository locally and run an apt-get update:
$ sudo apt-add-repository ppa:tsuru/ppa
$ sudo apt-get update
Now you can install Tsuru’s clients:
$ sudo apt-get install tsuru
$ sudo apt-get install crane
$ sudo apt-get install tsuru-admin
tsuru clients are also distributed in binary version, so you can just download an executable and put them somewhere in your PATH.
It’s important to note that all binaries are platform dependent. Currently, we provide each of them in three flavors:
Below are the links to the binaries, you can just download, extract the archive and put the binary somewhere in your PATH:
darwin_amd64
linux_386
linux_amd64
Tsuru’s source is written in Go, so before installing tsuru from source, please make sure you have installed and configured Go.
With Go installed and configured, you can use go get to install any of tsuru’s clients:
$ go get github.com/globocom/tsuru/cmd/tsuru
$ go get github.com/globocom/tsuru/cmd/tsuru-admin
$ go get github.com/globocom/tsuru/cmd/crane