Browse Source

Scripts support (#187)

Closes #186
AbdBarho 4 years ago
parent
commit
d6cbafdca8
3 changed files with 5 additions and 2 deletions
  1. 0 0
      .devscripts/migratev1tov2.sh
  2. 1 1
      docker-compose.yml
  3. 4 1
      services/AUTOMATIC1111/mount.sh

+ 0 - 0
scripts/migratev1tov2.sh → .devscripts/migratev1tov2.sh


+ 1 - 1
docker-compose.yml

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

+ 4 - 1
services/AUTOMATIC1111/mount.sh

@@ -2,7 +2,7 @@
 
 set -Eeuo pipefail
 
-mkdir -p /data/config/auto/
+mkdir -p /data/config/auto/scripts/
 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
 
@@ -10,6 +10,9 @@ if [ ! -f /data/config/auto/ui-config.json ]; then
   echo '{}' >/data/config/auto/ui-config.json
 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
 
 MOUNTS["/root/.cache"]="/data/.cache"