Fix Bazel on properly sandboxed execution

Test Plan: Tested by launching VM

X-Origin-Diff: phab/D199
GitOrigin-RevId: d27f09e62067082ca0d6f40510c851752094b481
3 files changed
tree: 4bc2b91b2e276c6e7ee4131ab0c76eec4ec391fa
  1. build/
  2. cmd/
  3. internal/
  4. pkg/
  5. scripts/
  6. .bazelignore
  7. .bazelrc
  8. .bazelversion
  9. BUILD
  10. README.md
  11. WORKSPACE
README.md

Smalltown Operating System

Run build

The build uses a Fedora 30 base image with a set of dependencies.

Start container shell:

modprobe kvm

podman build -t smalltown-builder .

podman run -it --rm \
    -v $(pwd):/work \
    -v /dev/null:/work/.git \
    -v /dev/null:/work/.idea \
    -v /dev/null:/work/.arcconfig \
    --device /dev/kvm \
    --net=host \
    smalltown-builder bash

Launch the VM:

bazelisk run scripts:launch

Exit qemu using the monitor console: Ctrl-A c quit.

If your host is low on entropy, consider running rngd from rng-tools for development.