File tree 4 files changed +16
-5
lines changed
4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -Eeuo pipefail
4
4
5
- find . -name " *.sh" -exec git update-index --chmod=+x {} \;
5
+ find services -name " *.sh" -exec git update-index --chmod=+x {} \;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ services:
36
36
<< : *base_service
37
37
profiles : ["auto"]
38
38
build : ./services/AUTOMATIC1111
39
- image : sd-auto:6
39
+ image : sd-auto:7
40
40
environment :
41
41
- CLI_ARGS=--allow-code --medvram --xformers
42
42
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ RUN pip install opencv-python-headless \
80
80
81
81
COPY . /docker
82
82
83
- RUN chmod +x /docker/mount .sh && python3 /docker/info.py ${ROOT}/modules/ui.py
83
+ RUN chmod +x /docker/entrypoint .sh && python3 /docker/info.py ${ROOT}/modules/ui.py
84
84
85
85
WORKDIR ${ROOT}/repositories/stable-diffusion
86
86
ENV CLI_ARGS=""
87
87
EXPOSE 7860
88
+ ENTRYPOINT ["/docker/entrypoint.sh" ]
88
89
# run, -u to not buffer stdout / stderr
89
- CMD /docker/mount.sh && \
90
- python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}
90
+ CMD python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}
Original file line number Diff line number Diff line change 2
2
3
3
set -Eeuo pipefail
4
4
5
+ # TODO: move all mkdir -p ?
5
6
mkdir -p /data/config/auto/scripts/
6
7
cp -n /docker/config.json /data/config/auto/config.json
7
8
jq ' . * input' /data/config/auto/config.json /docker/config.json | sponge /data/config/auto/config.json
@@ -32,6 +33,7 @@ MOUNTS["${ROOT}/models/hypernetworks"]="/data/Hypernetworks"
32
33
MOUNTS[" ${ROOT} /embeddings" ]=" /data/embeddings"
33
34
MOUNTS[" ${ROOT} /config.json" ]=" /data/config/auto/config.json"
34
35
MOUNTS[" ${ROOT} /ui-config.json" ]=" /data/config/auto/ui-config.json"
36
+ MOUNTS[" ${ROOT} /extensions" ]=" /data/config/auto/extensions"
35
37
36
38
# extra hacks
37
39
MOUNTS[" ${ROOT} /repositories/CodeFormer/weights/facelib" ]=" /data/.cache"
@@ -49,3 +51,12 @@ for to_path in "${!MOUNTS[@]}"; do
49
51
done
50
52
51
53
mkdir -p /output/saved /output/txt2img-images/ /output/img2img-images /output/extras-images/ /output/grids/ /output/txt2img-grids/ /output/img2img-grids/
54
+
55
+ if [ -f " /data/config/auto/startup.sh" ]; then
56
+ pushd ${ROOT}
57
+ . /data/config/auto/startup.sh
58
+ popd
59
+ fi
60
+
61
+
62
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments