Skip to content

Commit

Permalink
carsharing: use endless while loop as crob job
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Apr 17, 2024
1 parent 1b7d20c commit e06e241
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infrastructure/docker/carsharing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ARG CARSHARING_BASEURL=https://carsharing.otp.opendatahub.testingmachine.eu

ENV CARSHARING_BASEURL=$CARSHARING_BASEURL

# create a "fake" cron job with sleep 60
# and with docker compose "restart: unless-stopped"
ENTRYPOINT python -m x2gbfs.x2gbfs -p noi -b ${CARSHARING_BASEURL} && sleep 60
# create a "fake" cron job with sleep 60 and endless while loop
ENTRYPOINT while true; do python -m x2gbfs.x2gbfs -p noi -b ${CARSHARING_BASEURL}; sleep 60; done;

0 comments on commit e06e241

Please sign in to comment.