Add sqlboiler bazel rules
This implements a bazel rule to build sqlboiler models from sql migration stacks. It also launches a cockroachdb container in `create_container` and puts it in one pod with the nexantic-dev container.
Currently gazelle overwrites the `go_library` rule. I still need to find a way to properly exclude it.
Test Plan: Built a sample set of sql models
X-Origin-Diff: phab/D226
GitOrigin-RevId: ff24f07bb0b3da9994c52a74f48b54e1e2bea726
diff --git a/scripts/create_container.sh b/scripts/create_container.sh
index 0067d72..c9c2db1 100755
--- a/scripts/create_container.sh
+++ b/scripts/create_container.sh
@@ -24,6 +24,8 @@
chcon -R unconfined_u:object_r:user_home_t:s0 \
.arcconfig .idea .git
+podman pod create --name nexantic
+
# TODO(leo): mount .cache/bazel on a volume (waiting for podman issue to be fixed)
# https://github.com/containers/libpod/issues/4318
podman run -it -d \
@@ -35,5 +37,12 @@
--device /dev/kvm \
--privileged \
--userns=keep-id \
+ --pod nexantic \
--name=nexantic-dev \
nexantic-builder
+
+podman run -it -d \
+ --pod nexantic \
+ --ulimit nofile=262144:262144 \
+ --name=nexantic-cockroach \
+ cockroachdb/cockroach:v19.1.5 start --insecure
diff --git a/scripts/destroy_container.sh b/scripts/destroy_container.sh
index 11d252d..c60800a 100755
--- a/scripts/destroy_container.sh
+++ b/scripts/destroy_container.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-podman stop nexantic-dev
-podman rm nexantic-dev --force
+podman pod stop nexantic
+podman pod rm nexantic --force