Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (20 loc) · 1.09 KB

building.md

File metadata and controls

37 lines (20 loc) · 1.09 KB

Building from source

Ensure you have Golang 1.11 (or newer) and Git installed

go version
git --version

First clone the Gatekeeper repository:

git clone https://github.com/gogatekeeper/gatekeeper.git
cd gatekeeper

To build Gatekeeper run:

make && make test

This will compile Go files and package the results into a binary file inside bin/gatekeeper and run the testsuite.

To build a distribution run:

make release

Once completed you will find distribution archives in the release folder.

Starting Gatekeeper

To start Gatekeeper during development first build as specified above, then run:

bin/gatekeeper

Working with the codebase

We don't currently enforce a code style in Gatekeeper, because Go already have tools to ensure that code is properly formatted. Before submitting any pull request, please run:

make format && make lint

If your changes require introducing new dependencies or updating dependency versions please discuss this first on the mailing list. We do not accept new dependencies to be added lightly, so try to use what is available.