Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
RV authored and RV committed Feb 28, 2024
2 parents a36f402 + 4fe97a5 commit aa18e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install -y
# The entrypoint.sh script stores ENV vars at runtime in the ~/.env file as key=value pairs
# Then the cron line include some command to load these ENV vars from file before launching app.py
# This mecanism allows to give access to the same ENV vars for app.py launch in terminal and launch via cron
RUN echo "*/15 * * * * root export PATH_ENV=/tmp/.env.cron;/venv/bin/python3 -c "from bloom.config import settings";export $(shell cat /tmp/.env.cron| grep -v "#" | xargs -d '\r');/venv/bin/python3 /source_code/app.py 2>&1 | /usr/bin/logger -t bloom" >> ./cron_scrapper
RUN echo "*/15 * * * * root export PATH_ENV=/tmp/.env.cron;/venv/bin/python3 -c 'from bloom.config import settings';export \$(shell cat /tmp/.env.cron| grep -v '#' | xargs -d '\r');/venv/bin/python3 /source_code/app.py 2>&1 | /usr/bin/logger -t bloom" >> ./cron_scrapper
RUN chmod 744 ./cron_scrapper

# Move cron tab into the right directory
Expand Down

0 comments on commit aa18e5c

Please sign in to comment.