warren/README.md

51 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2014-12-08 17:21:19 +01:00
warren
======
Build, Deploy and Multiversion Run tool
2014-12-14 20:55:45 +01:00
2015-03-26 04:48:19 +01:00
Install
-------
```
2014-12-31 17:25:13 +01:00
go get github.com/dballard/warren/
cd $GOPATH/src/github.com/dballard/warren/
make
sudo make install
2015-03-26 04:48:19 +01:00
```
Usage
-----
### Build
**`warren build`**
Build the current go package. Pretty much `go build` but with additional defines:
> * BuildGitBranch - from git
> * BuildGitHash - from git
> * BuildDate - from system time
### Deploy
**`waren deploy`**
Deploy the current package to ./deploy, which is registered with warrend. By default, assumed $DIRNAME is the name of the go pacakge and just deploys that binary to a subdirctory named after the date and githash
An optional warren.yaml manifest can be supplied to indicate additional files to be included in the deploy
### Running
**`warrend`** is the main tool that runs registered go services, but is managed via the `warren` command.
`warrend` stores registered deployment information in /etc/warrend.json. Don't edit it directly, use the command line interface.
`warrend` stores deployment specific config in the deployment's directory in warrend.json
2014-12-31 17:25:13 +01:00
2015-03-26 04:48:19 +01:00
* `warren list` lists registered deployments (directory, name)
* `warren reg [name] [directory]` registers a warren deployment directory with warrend for running
* `warren unreg [name]` unregisters a warren deployment
* `warren pool [name] [low high]` with no argument, displays the port range for a deployment, With arguments, sets the low and high and range of the pool. The first 2 ports of the pool are reserved for **stable** and **tail**
2015-03-28 04:37:53 +01:00
* `warren peg [name] [stable] [hash]` Sets a certain hash as the new "stable"
* `warren start [name]` starts a deployment running
* `warren stop [name]` stops a deployment