Setup Hasura-auth locally
This commit is contained in:
committed by
Charles Bochet
parent
43e71c6c93
commit
39ffb0f90b
@ -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
11
infra/dev/hasura/entrypoint.sh
Executable 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
|
||||
Reference in New Issue
Block a user