Sign inSign up

kolide/fleet-builder

By kolide

•Updated almost 9 years ago

Container for building/testing Kolide Fleet

Image
0

1.2K

kolide/fleet-builder repository overview

Usage

Usage: builder.sh [args]
  -T,--tests            : Go run tests then exit
  -C,--ci               : Replicate full circle CI run
  -B,--build            : Build a release
⁠Caching pkg folder

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.

⁠Build a binary

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

Tag summary

Content type

Image

Digest

Size

170.8 MB

Last updated

almost 9 years ago

docker pull kolide/fleet-builder:1.9