script: nexantic -> monogon
This replaces the 'nexantic' build container with one called 'monogon'.
Also drive-by fix Fietsje's proto package path.
Test Plan: Refactor, CI only.
X-Origin-Diff: phab/D687
GitOrigin-RevId: 15165f3b57927836dc9601454b31dce4b2c09c7d
diff --git a/scripts/bin/bazel b/scripts/bin/bazel
index b63e060..535eda5 100755
--- a/scripts/bin/bazel
+++ b/scripts/bin/bazel
@@ -8,4 +8,4 @@
#
ARGS=$(echo $@ | sed "s%--override_repository=intellij_aspect=[^ ]*%--override_repository=intellij_aspect=${HOME}/.cache/bazel-nxt/ijwb_aspect%")
-exec podman exec -it nexantic-dev bazel --output_user_root ${HOME}/.cache/bazel-nxt $ARGS
+exec podman exec -it monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-nxt $ARGS
diff --git a/scripts/create_container.sh b/scripts/create_container.sh
index e78d144..f98c296 100755
--- a/scripts/create_container.sh
+++ b/scripts/create_container.sh
@@ -1,6 +1,10 @@
#!/bin/bash
set -euo pipefail
+# TODO(by 2021/02/01): remove this (backward compatibility for dev envs)
+! podman pod stop nexantic
+! podman pod rm nexantic --force
+
# Our local user needs write access to /dev/kvm (best accomplished by
# adding your user to the kvm group).
if ! touch /dev/kvm; then
@@ -16,7 +20,7 @@
fi
# Rebuild base image
-podman build -t nexantic-builder build
+podman build -t monogon-builder build
# Set up SELinux contexts to prevent the container from writing to
# files that would allow for easy breakouts via tools ran on the host.
@@ -28,7 +32,7 @@
# Keep this in sync with ci.sh:
-podman pod create --name nexantic
+podman pod create --name monogon
# Mount bazel root to identical paths inside and outside the container.
# This caches build state even if the container is destroyed, and
@@ -51,7 +55,7 @@
--volume=${BAZEL_ROOT}:${BAZEL_ROOT} \
--device /dev/kvm \
--privileged \
- --pod nexantic \
- --name=nexantic-dev \
+ --pod monogon \
+ --name=monogon-dev \
--net=host \
- nexantic-builder
+ monogon-builder
diff --git a/scripts/destroy_container.sh b/scripts/destroy_container.sh
index c60800a..750c829 100755
--- a/scripts/destroy_container.sh
+++ b/scripts/destroy_container.sh
@@ -1,4 +1,8 @@
#!/bin/bash
-podman pod stop nexantic
-podman pod rm nexantic --force
+# TODO(by 2021/02/01): remove this (backward compatibility for dev envs)
+! podman pod stop nexantic
+! podman pod rm nexantic --force
+
+podman pod stop monogon
+podman pod rm monogon --force
diff --git a/scripts/run_ci.sh b/scripts/run_ci.sh
index 1f4a020..de521b0 100755
--- a/scripts/run_ci.sh
+++ b/scripts/run_ci.sh
@@ -9,8 +9,8 @@
BUILD_PHID=$2;
shift; shift;
-TAG=nexantic-version-${DOCKERFILE_HASH}
-POD=nexantic-build-${BUILD_ID}
+TAG=monogon-version-${DOCKERFILE_HASH}
+POD=monogon-build-${BUILD_ID}
# We keep one Bazel build cache per working copy to avoid concurrency issues
# (we cannot run multiple Bazel servers on a given _bazel_root)
diff --git a/scripts/run_in_container.sh b/scripts/run_in_container.sh
index 0fd2731..54c28cf 100755
--- a/scripts/run_in_container.sh
+++ b/scripts/run_in_container.sh
@@ -1,4 +1,4 @@
#!/bin/bash
set -euo pipefail
-podman exec -it nexantic-dev $@
+podman exec -it monogon-dev $@