This directory is a standard set of tooling for Origin. You can seed a new repository with
$ tools/hack/golang/update REPO_DIR PACKAGE_NAME
which will update the hack/ dir, create a Makefile
, and create a PACKAGE_NAME.spec
file. You can rerun this script to update the contents of the hack dir.
Once updated, you'll need to do the following:
- Update
PACKAGE_NAME.spec
and fill out theTODO
sections. You'll also need to update the%files
section. - Update
hack/lib/constants.sh
to contain the binaries you wish to compile. - Update
hack/lib/constants.sh
to change theos::build::images
function to build your images. If you descend fromopenshift/origin-base
, you should automatically get RPMs in your builds.
To test out your new scripts, run:
$ make build-images
in the new repository. Also run
$ make check
to verify your scripts work.
Creates appropriate binaries in _output/local/bin/<GOOS>/<GOARCH>
:
$ make
$ make check
$ make build-rpms
$ make build-images