https://github.com/hermanbanken/example-bazel-repo
https://github.com/hermanbanken/example-bazel-repo
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hermanbanken/example-bazel-repo
- Owner: hermanbanken
- Archived: true
- Created: 2024-04-11T15:12:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T13:38:38.000Z (over 1 year ago)
- Last Synced: 2025-02-18T15:55:11.315Z (8 months ago)
- Language: Starlark
- Size: 80.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bazel for n00bs
Created by a Bazel n00b just learning Bazel for the first time.Preparations:
```bash
brew install bazel
go install github.com/bazelbuild/buildtools/buildozer@latest
```Generate something useful:
```bash
bazel run //project-backend:tarball
```Multi-platform Docker OCI images: https://github.com/bazel-contrib/rules_oci/pull/531. New way:
```starlark
# file=BUILD
oci_image_index(
name = "app",
image = ":app_linux",
platforms = [
"@io_bazel_rules_go//go/toolchain:linux_amd64",
"@io_bazel_rules_go//go/toolchain:linux_arm64",
]
)
```