Merge remote-tracking branch 'origin/main'

# Conflicts:
#	Dockerfile
#	pulse.py
This commit is contained in:
Jan-Ole Hübner 2024-08-17 23:45:18 +02:00
commit cd4819252d
2 changed files with 17 additions and 0 deletions

6
delay_price.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
source /app/env
printenv
sleep 2
python3 /app/get_price.py >> /var/log/cron.log 2>&1

11
start.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
printenv > /app/env
# Start the cron service
service cron start
# Run your main application script (pulse.py) in the background
python3 /app/pulse.py &
# Keep the container running and output both cron logs and pulse.py output
tail -f /var/log/cron.log &
wait -n