Skip to content

Commit

Permalink
carsharing: move sleep to entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Apr 17, 2024
1 parent f8c96d4 commit 1b7d20c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions infrastructure/docker/carsharing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ ARG CARSHARING_BASEURL=https://carsharing.otp.opendatahub.testingmachine.eu

ENV CARSHARING_BASEURL=$CARSHARING_BASEURL

# create a "fake" cron job with sleep
# create a "fake" cron job with sleep 60
# and with docker compose "restart: unless-stopped"
RUN echo "sleep 60..."
RUN sleep 60
RUN echo "done."

ENTRYPOINT ["python", "-m", "x2gbfs.x2gbfs", "-p", "noi", "-b", "${CARSHARING_BASEURL}"]
ENTRYPOINT python -m x2gbfs.x2gbfs -p noi -b ${CARSHARING_BASEURL} && sleep 60

0 comments on commit 1b7d20c

Please sign in to comment.