From ab311001a5caa8487853ca032a2756d8f59dfec7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 16 Apr 2023 20:09:05 -0500 Subject: [PATCH] ocivm.sh: Allow projects to specify build VM name Projects can now set a `buildvm` variable in their `config` file to specify a unique name for their build VMs. This allows multiple projects to have running VMs simultaneously. If a project does not provide a name, the build VM will be called `aimeebuild`. --- ocivm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ocivm.sh b/ocivm.sh index 951132d..2160bb2 100755 --- a/ocivm.sh +++ b/ocivm.sh @@ -4,7 +4,6 @@ set -e . "${CONFIGDIR:=${PWD}}"/config -name=build_yellow if ! ocivm list | grep -q localhost/cross-${target}; then ocivm import localhost/cross-${target} fi @@ -12,7 +11,7 @@ ocivm \ --log-level DEBUG \ run \ -m 8G \ - -n ${name} \ + -n ${buildvm:-aimeebuild} \ -w /tmp/src \ -v "${PWD}":/tmp/src \ -v portagecache:/var/cache:size=16G \