bazel-mono

module
v0.0.0-...-8a165f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT

README

bazel-mono

Playing around with using Bazel for CI

Prerequisites

Setup

  • Run the tests to run all tests and populate the local bazel cache
    $ bazel test //...
    
  • Run the symlink script to symlink generated files and fix gopls errors
    $ ./symlinks.sh
    
  • Symlinks are ignored by git but should be automatically updated if bazel regenerates the source files.

Status

Final output should be a docker container pushed to the repo registry.

Working:

  • Go gRPC server
    $ docker run --rm -d --name postgres -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres
    $ bazel run //cmd/go-server:go-server.binary -- --postgres-url postgresql://postgres@localhost:5432/postgres?sslmode=disable
    $ bazel run //cmd/go-server:publish
    
  • Go gRPC client
    $ bazel run //cmd/go-client:go-client.binary
    $ bazel run //cmd/go-client:publish
    

Directories

Path Synopsis
cmd
proto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL