Skip to content

Commit

Permalink
chore: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 31, 2024
1 parent d582788 commit ab0ff07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ beautifulsoup4
# Misc
APScheduler
youtube_dl
twilio
twilio
streamlit
12 changes: 6 additions & 6 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand All @@ -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


Expand Down

0 comments on commit ab0ff07

Please sign in to comment.