blob: f03e57d7a69b3e0199a017671fd7059b4da342d6 [file] [log] [blame]
#!/usr/bin/env bash
set -euo pipefail
if ! podman inspect monogon-dev --format ":{{ range .Mounts }}{{.Source }}:{{ end }}" | grep -q ":$(pwd):"; then
echo "Please run this wrapper from the original checkout"
exit 1
fi
# ibazel doesn't take a --output_user_root, set it using the per-user .bazelrc inside the container.
podman exec -i monogon-dev bash -c "cat - > /user/.bazelrc" <<EOF
startup --output_user_root ${HOME}/.cache/bazel-monogon
EOF
exec podman exec -it monogon-dev ibazel "$@"