Skip to content

Commit

Permalink
infra: let amarillo sleep for 60s to wait for graphhopper
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Mar 28, 2024
1 parent 9e8f3c9 commit 2983da6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ services:

amarillo:
container_name: amarillo
image: openmove_amarillo:latest
build:
context: ./
dockerfile: infrastructure/docker/amarillo/Dockerfile
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/docker/amarillo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ RUN rm /app/conf/region/* && \

# Overwrite config
COPY ./amarillo /app


COPY ./infrastructure/docker/amarillo/docker-entrypoint.sh ./docker-entrypoint.sh
RUN chmod +x ./docker-entrypoint.sh

ENTRYPOINT ["./docker-entrypoint.sh"]
8 changes: 8 additions & 0 deletions infrastructure/docker/amarillo/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# amarillo needs started graphopper, so wait some time to let it startup
echo "sleeping to wait for graphhopper startup..."
sleep 60;
echo "sleeping over. graphhopper are you there?"
bash /app/prestart.sh
uvicorn amarillo.main:app --host 0.0.0.0 --port 80;

0 comments on commit 2983da6

Please sign in to comment.