Setup Hasura-auth locally

This commit is contained in:
Anders Borch
2023-04-19 13:04:21 +02:00
committed by Charles Bochet
parent 43e71c6c93
commit 39ffb0f90b
10 changed files with 55 additions and 5 deletions

View File

@ -8,4 +8,8 @@ RUN curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bas
WORKDIR /hasura
CMD ["sh", "-c", "graphql-engine serve"]
RUN mkdir entrypoints
COPY ./entrypoint.sh ./entrypoints/entrypoint.sh
ENTRYPOINT ["entrypoints/entrypoint.sh"]

11
infra/dev/hasura/entrypoint.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
graphql-engine serve &
while ! curl -s http://localhost:8080/healthz > /dev/null ; do
sleep 1
done
hasura deploy
wait