module
Version:
v0.0.0-...-8a165f0
Opens a new window with list of versions in this module.
Published: Aug 16, 2021
License: MIT
Opens a new window with license information.
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
Click to show internal directories.
Click to hide internal directories.