Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 855 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 855 Bytes

About

Build container for statshouse

How to use

  1. Build image - you need to rebuild it only when build dependecies change
./build
  1. Copy sbc script to $HOME/bin (assuming you have fish shell, ~/bin is in $PATH, repo located at ~/project/statshouse) Just change script to suit you needs if assumptions are wrong.

  2. 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.