breakglass is written in Golang. To build it, you'll need to perform a few steps.
This varies depending on your operating system. There are instructions here
All go packages go into your $GOPATH
so you'll need to create one.
mkdir -p $HOME/go/{src,bin}
export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin
Go expects all packages to be in your $GOPATH
. Clone this repo into your $GOPATH
.
mkdir -p $GOPATH/src/github.com/apptio
git clone git@github.heygears.com.com:apptio/breakglass.git $GOPATH/src/github.com/apptio/
This project uses glide for its dependencies. Install it using the instructions detailed here
Now that everything is ready to go, you should be able to install all the dependencies. From within the repo, run:
glide install
This assumes that the previously installed glide
binary is in your $PATH
.
now all the dependencies are installed, you can use the go build tool to build for your OS.
go build -o breakglass main.go
This will create a binary, breakglass
, in the current directory