mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
f961e865f5
addressing #2105 Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
11 lines
435 B
Bash
11 lines
435 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Variables shared by build.sh and run.sh
|
|
REPOSITORY_NAME=${REPOSITORY_NAME:-$(basename "$(git rev-parse --show-toplevel)")}
|
|
VOLUMENAME=${VOLUMENAME:-${REPOSITORY_NAME,,}_data}
|
|
ARCH=${ARCH:-$(uname -m)}
|
|
PLATFORM=${PLATFORM:-Linux/${ARCH}}
|
|
CONTAINER_FLAVOR=${CONTAINER_FLAVOR:-cuda}
|
|
INVOKEAI_BRANCH=$(git branch --show)
|
|
INVOKEAI_TAG=${REPOSITORY_NAME,,}-${CONTAINER_FLAVOR}:${INVOKEAI_TAG:-${INVOKEAI_BRANCH/\//-}}
|