diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 7a9e6921ce..194615e515 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -9,10 +9,6 @@ set -e -o pipefail ### Set INVOKEAI_ROOT pointing to a valid runtime directory # Otherwise configure the runtime dir first. -### Configure the InvokeAI runtime directory (done by default)): -# docker run --rm -it --configure -# or skip with --no-configure - ### Set the CONTAINER_UID envvar to match your user. # Ensures files created in the container are owned by you: # docker run --rm -it -v /some/path:/invokeai -e CONTAINER_UID=$(id -u) @@ -22,27 +18,6 @@ USER_ID=${CONTAINER_UID:-1000} USER=ubuntu usermod -u ${USER_ID} ${USER} 1>/dev/null -configure() { - # Configure the runtime directory - if [[ -f ${INVOKEAI_ROOT}/invokeai.yaml ]]; then - echo "${INVOKEAI_ROOT}/invokeai.yaml exists. InvokeAI is already configured." - echo "To reconfigure InvokeAI, delete the above file." - echo "======================================================================" - else - mkdir -p "${INVOKEAI_ROOT}" - chown --recursive ${USER} "${INVOKEAI_ROOT}" - gosu ${USER} invokeai-configure --yes --default_only - fi -} - -## Skip attempting to configure. -## Must be passed first, before any other args. -if [[ $1 != "--no-configure" ]]; then - configure -else - shift -fi - ### Set the $PUBLIC_KEY env var to enable SSH access. # We do not install openssh-server in the image by default to avoid bloat. # but it is useful to have the full SSH server e.g. on Runpod.