/rhc-manager

Primary LanguageGoApache License 2.0Apache-2.0

Red Hat Container Manager

This program allows you to retrieve information about the container project form Red Hat Connect and trigger manual builds without needing to log in to the website.

Requirements

Build and Install

go get github.com/sysdiglabs/rhc-manager
go install github.com/sysdiglabs/rhc-manager/cmd/rhc-manager

Usage

You can find your $GOPATH with go env | grep GOPATH

Note: it's recommended to add $GOPATH/bin to your $PATH variable.

Get project info:

$GOPATH/bin/rhc-manager -id <project_id>

Trigger manual build:

$GOPATH/bin/rhc-manager -id <project_id> -b <build_tag>

Testing

You can execute the automated tests with:

go test -v

And also checkout the code coverage with:

go test -coverprofile cover.out
go tool cover -html cover.out