Build container for statshouse
- Build image - you need to rebuild it only when build dependecies change
./build
-
Copy
sbc
script to$HOME/bin
(assuming you havefish
shell,~/bin
is in$PATH
, repo located at~/project/statshouse
) Just change script to suit you needs if assumptions are wrong. -
Run compilation inside created image
# build command from readme
sbc make build-sh build-sh-api build-sh-metadata build-sh-ui
# build stathouse-api only
sbc go build -o target/statshouse-api -ldflags "-X 'github.com/vkcom/statshouse/internal/vkgo/build.trustedSubnetGroups=0.0.0.0/0'" ./cmd/statshouse-api/
# start interactive shell
sbc bash
Steps 1 and 3 are expected to be run from the same user because images remembers group and user id during build.