Create and interact with clusters on both Rackspace Public and Private Cloud.
The build script assumes you're running go 1.7 or later. If not, upgrade or use something like gimme.
carina in the current directory (there is no
make install currently).
make: First run for newcomers.
make get-deps: Retrieves dependencies into the
vendor/directory using glide.
make validate: Run tools like
make test: Run unit tests.
make local: Build for the current dev env, using whatever dependencies that happen to be on the local machine.
make cross-build: The official build.
Here's how to work on libcarina and the cli at the same time locally:
go get github.com/getcarina/libcarina.
- Make required changes to libcarina in
rm $GOPATH/src/github.com/getcarina/carina/vendor/github.com/getcarina/libcarinaso that Go will pickup your local edits, and not use the vendored version. Use
make localto build. Don't use
makeas it will restore the vendored copy of libcarina, overriding your local changes.
- When everything is looking good, run
$GOPATH/src/github.com/getcarina/libcarinato validate and format your changes.
- Submit a PR to libcarina and once it is merged to master, note the commit hash.
$GOPATH/src/github.com/getcarina/carina/glide.lockupdate the commit hash for libcarina. Make sure you are editing the libcarina package and not libmakeswarm. They are same repository, but represent different branches.
makeand verify that libcarina is restored the right vendored commit hash and everything still works.
Here's how to release a beta build:
Checkout the release branch:
git checkout release/v2.0.0
Create a tag for the beta release:
git tag v2.0.0-beta.8 -a -m ""
Push the tag:
git push --follow-tags
Watch the Travis CI build, and wait for a successful deploy.
Validate the uploaded binary
curl -sL https://download.getcarina.com/carina/beta/$(uname -s)/$(uname -m)/carina -o carina chmod +x carina ./carina --version # Should print the new version