mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
1a1625406c
* Push dockerfile (#18) * update build-container.yml * add login step to build-container.yml * update job name * update matrix: add registry and platforms also set latest only for cuda image * quote string * use latest for amd and cuda image * separate images for cuda and amd * change latest from auto to true * configure_invoke -y instead of --interactive * fix argument to --yes * update matrix: - use flavor instead of pip-requirements - add flavor `cloud` - add `dockerfile` * introduce INVOKE_MODEL_RECONFIGURE * add `--cap-add=sys_nice` to run.sh * update Dockerfile: install wheel * only have main branch in action again * disable push of cloud image for now since it still has it's own workflow, but PoC succeeded * remove now untrue comments in top * install pip, setuptools and wheel in sep. step * add labels to the image * remove doubled installation of wheel
21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
source ./docker-build/env.sh || echo "please run from repository root" || exit 1
|
|
|
|
echo -e "You are using these values:\n"
|
|
echo -e "volumename:\t ${volumename}"
|
|
echo -e "invokeai_tag:\t ${invokeai_tag}\n"
|
|
|
|
docker run \
|
|
--interactive \
|
|
--tty \
|
|
--rm \
|
|
--platform="$platform" \
|
|
--name="$project_name" \
|
|
--hostname="$project_name" \
|
|
--mount="source=$volumename,target=/data" \
|
|
--publish=9090:9090 \
|
|
--cap-add=sys_nice \
|
|
"$invokeai_tag" ${1:+$@}
|