Container for building/testing Kolide Fleet
1.2K
Usage
Usage: builder.sh [args]
-T,--tests : Go run tests then exit
-C,--ci : Replicate full circle CI run
-B,--build : Build a release
If you're repeatedly testing the build on a development machine, it makes sense to mount the $GOPATH/pkg along with your source.
docker run --rm -it -v (pwd):/go/src/github.com/kolide/fleet -v $GOPATH/pkg:/go/pkg fleet-builder -T
The first time the container runs, go install will compile all the dependencies under $GOPATH/pkg/linux_amd64/... making future test runs faster.
Using the -B,--build flag will first run the CI build and then create a linux build in ./build/.
This option is intended to be used followed by docker build to build a new release.
TODO: add ldflags for commit sha to main
Content type
Image
Digest
Size
170.8 MB
Last updated
almost 9 years ago
docker pull kolide/fleet-builder:1.9