From 577d05c5032e54f132e33f4a27fd8e7381f17557 Mon Sep 17 00:00:00 2001 From: bkellam Date: Fri, 6 Sep 2024 12:19:55 -0700 Subject: [PATCH] Relax CONFIG_PATH check to warning --- entrypoint.sh | 8 ++++---- sample-config.json | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 sample-config.json diff --git a/entrypoint.sh b/entrypoint.sh index 5eee0f7..83beb30 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,10 @@ #!/bin/sh set -e -# Check if the configuration file exists -if [ ! -f "$CONFIG_PATH" ]; then - echo "Error: Configuration file not found at $CONFIG_PATH. Please check that you mounted a volume to $DATA_DIR, and the volume contains a config.json file at the root." - exit 1 + +# Check if CONFIG_PATH is set +if [ -z "$CONFIG_PATH" ]; then + echo "\e[33mWarning: CONFIG_PATH environment variable is not set.\e[0m" fi # Check if GITHUB_TOKEN is set diff --git a/sample-config.json b/sample-config.json new file mode 100644 index 0000000..f7b2924 --- /dev/null +++ b/sample-config.json @@ -0,0 +1,9 @@ +{ + "$schema": "./schemas/zoekt-mirror.json", + "Configs": [ + { + "Type": "github", + "GitHubOrg": "TaqlaAI" + } + ] +} \ No newline at end of file