diff --git a/.github/workflows/dev-build.yaml b/.github/workflows/dev-build.yaml index e4ff3689c..0e2e15c33 100644 --- a/.github/workflows/dev-build.yaml +++ b/.github/workflows/dev-build.yaml @@ -6,7 +6,7 @@ concurrency: on: push: - branches: ['873-pgvector-support'] # put your current branch to create a build. Core team only. + branches: ['warn-bad-docker-command'] # put your current branch to create a build. Core team only. paths-ignore: - '**.md' - 'cloud-deployments/*' diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 1ac69e5ba..80296accc 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -1,4 +1,21 @@ #!/bin/bash + +# Check if STORAGE_DIR is set +if [ -z "$STORAGE_DIR" ]; then + echo "================================================================" + echo "⚠️ ⚠️ ⚠️ WARNING: STORAGE_DIR environment variable is not set! ⚠️ ⚠️ ⚠️" + echo "" + echo "Not setting this will result in data loss on container restart since" + echo "the application will not have a persistent storage location." + echo "It can also result in weird errors in various parts of the application." + echo "" + echo "Please run the container with the official docker command at" + echo "https://docs.anythingllm.com/installation-docker/quickstart" + echo "" + echo "⚠️ ⚠️ ⚠️ WARNING: STORAGE_DIR environment variable is not set! ⚠️ ⚠️ ⚠️" + echo "================================================================" +fi + { cd /app/server/ && npx prisma generate --schema=./prisma/schema.prisma && @@ -7,4 +24,4 @@ } & { node /app/collector/index.js; } & wait -n -exit $? +exit $? \ No newline at end of file