Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ services:
peeringdb-sync:
<<: *peering-manager
environment:
COMMAND_DELAY: 120
COMMAND_INTERVAL: 86400
depends_on:
peering-manager:
Expand Down
3 changes: 3 additions & 0 deletions docker/run-command.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
DELAY_SECONDS=${COMMAND_DELAY:=0}
SLEEP_SECONDS=${COMMAND_INTERVAL:=86400}

echo "Initial delay set to ${DELAY_SECONDS} seconds"
echo "Interval set to ${SLEEP_SECONDS} seconds"
sleep "${DELAY_SECONDS}s"
while true; do
date
/opt/peering-manager/venv/bin/python /opt/peering-manager/manage.py ${@}
Expand Down