From ab0ff071c213d705194be9d3677aa9c53ec0022a Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 30 May 2024 19:19:18 -0700 Subject: [PATCH] chore: docker --- Dockerfile | 2 +- requirements.txt | 3 ++- start.sh | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 660a257f..47b96cbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ENV ENV=prod \ # Install GCC and build tools RUN apt-get update && \ - apt-get install -y gcc build-essential && \ + apt-get install -y gcc build-essential pkg-config && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* diff --git a/requirements.txt b/requirements.txt index e53c57f7..f6e5e37b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -64,4 +64,5 @@ beautifulsoup4 # Misc APScheduler youtube_dl -twilio \ No newline at end of file +twilio +streamlit \ No newline at end of file diff --git a/start.sh b/start.sh index a19f29d8..400b286b 100755 --- a/start.sh +++ b/start.sh @@ -42,7 +42,7 @@ download_pipelines() { git sparse-checkout set "$subdir" ) else - echo "Invalid PIPELINES_PATH format." + echo "Invalid PIPELINES_URLS format." exit 1 fi } @@ -66,13 +66,13 @@ install_frontmatter_requirements() { } -# Check if PIPELINES_PATH environment variable is set and non-empty -if [[ -n "$PIPELINES_PATH" ]]; then +# Check if PIPELINES_URLS environment variable is set and non-empty +if [[ -n "$PIPELINES_URLS" ]]; then pipelines_dir="./pipelines" mkdir -p "$pipelines_dir" - # Split PIPELINES_PATH by ';' and iterate over each path - IFS=';' read -ra ADDR <<< "$PIPELINES_PATH" + # Split PIPELINES_URLS by ';' and iterate over each path + IFS=';' read -ra ADDR <<< "$PIPELINES_URLS" for path in "${ADDR[@]}"; do download_pipelines "$path" "$pipelines_dir" done @@ -83,7 +83,7 @@ if [[ -n "$PIPELINES_PATH" ]]; then fi done else - echo "PIPELINES_PATH not specified. Skipping pipelines download and installation." + echo "PIPELINES_URLS not specified. Skipping pipelines download and installation." fi