Scripts support

This commit is contained in:
AbdBarho 2022-10-30 09:19:53 +01:00
parent 4464e9d9e9
commit 2dd99a79b7
3 changed files with 5 additions and 2 deletions

View file

@ -36,7 +36,7 @@ services:
<<: *base_service <<: *base_service
profiles: ["auto"] profiles: ["auto"]
build: ./services/AUTOMATIC1111 build: ./services/AUTOMATIC1111
image: sd-auto:5 image: sd-auto:6
environment: environment:
- CLI_ARGS=--allow-code --medvram --xformers - CLI_ARGS=--allow-code --medvram --xformers

View file

@ -2,7 +2,7 @@
set -Eeuo pipefail set -Eeuo pipefail
mkdir -p /data/config/auto/ mkdir -p /data/config/auto/scripts/
cp -n /docker/config.json /data/config/auto/config.json cp -n /docker/config.json /data/config/auto/config.json
jq '. * input' /data/config/auto/config.json /docker/config.json | sponge /data/config/auto/config.json jq '. * input' /data/config/auto/config.json /docker/config.json | sponge /data/config/auto/config.json
@ -10,6 +10,9 @@ if [ ! -f /data/config/auto/ui-config.json ]; then
echo '{}' >/data/config/auto/ui-config.json echo '{}' >/data/config/auto/ui-config.json
fi fi
# copy scripts, we cannot just mount the directory because it will override the already provided scripts in the repo
cp -rfT /data/config/auto/scripts/ "${ROOT}/scripts"
declare -A MOUNTS declare -A MOUNTS
MOUNTS["/root/.cache"]="/data/.cache" MOUNTS["/root/.cache"]="/data/.cache"