@@ -9,10 +9,6 @@ set -e -o pipefail
99# ## Set INVOKEAI_ROOT pointing to a valid runtime directory
1010# Otherwise configure the runtime dir first.
1111
12- # ## Configure the InvokeAI runtime directory (done by default)):
13- # docker run --rm -it <this image> --configure
14- # or skip with --no-configure
15-
1612# ## Set the CONTAINER_UID envvar to match your user.
1713# Ensures files created in the container are owned by you:
1814# docker run --rm -it -v /some/path:/invokeai -e CONTAINER_UID=$(id -u) <this image>
@@ -22,27 +18,6 @@ USER_ID=${CONTAINER_UID:-1000}
2218USER=ubuntu
2319usermod -u ${USER_ID} ${USER} 1> /dev/null
2420
25- configure () {
26- # Configure the runtime directory
27- if [[ -f ${INVOKEAI_ROOT} /invokeai.yaml ]]; then
28- echo " ${INVOKEAI_ROOT} /invokeai.yaml exists. InvokeAI is already configured."
29- echo " To reconfigure InvokeAI, delete the above file."
30- echo " ======================================================================"
31- else
32- mkdir -p " ${INVOKEAI_ROOT} "
33- chown --recursive ${USER} " ${INVOKEAI_ROOT} "
34- gosu ${USER} invokeai-configure --yes --default_only
35- fi
36- }
37-
38- # # Skip attempting to configure.
39- # # Must be passed first, before any other args.
40- if [[ $1 != " --no-configure" ]]; then
41- configure
42- else
43- shift
44- fi
45-
4621# ## Set the $PUBLIC_KEY env var to enable SSH access.
4722# We do not install openssh-server in the image by default to avoid bloat.
4823# but it is useful to have the full SSH server e.g. on Runpod.
0 commit comments