Merge remote-tracking branch 'origin/main'
# Conflicts: # Dockerfile # pulse.py
This commit is contained in:
commit
cd4819252d
2 changed files with 17 additions and 0 deletions
6
delay_price.sh
Normal file
6
delay_price.sh
Normal 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
11
start.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue