-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The custom Docker image based on ubuntu:focal which was introduced as a workaround for the user bug hasura/graphql-engine#4651 can be removed because it has been fixed (hasura/graphql-engine@4e4e3f3).
- Loading branch information
Showing
1 changed file
with
4 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
FROM hasura/graphql-engine:v1.3.2.cli-migrations-v2 as hasura | ||
FROM hasura/graphql-engine:v1.3.3.cli-migrations-v2 | ||
|
||
FROM ubuntu:focal | ||
|
||
COPY --from=hasura /bin/graphql-engine /usr/local/bin/graphql-engine | ||
COPY --from=hasura /bin/hasura-cli /usr/local/bin/hasura-cli | ||
|
||
# Add non-root user as workaround for https://github.com/hasura/graphql-engine/issues/4651 | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends ca-certificates libpq5 netcat-openbsd curl \ | ||
&& adduser --system --disabled-login hasura \ | ||
RUN adduser -D hasura \ | ||
&& mkdir /seeds \ | ||
&& chown hasura:nogroup /seeds | ||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
USER hasura | ||
RUN hasura-cli plugin install cli-ext | ||
|
||
COPY --chown=hasura:nogroup metadata /metadata | ||
COPY --chown=hasura:nogroup migrations /migrations | ||
COPY config.yaml / | ||
|
||
ENV HASURA_GRAPHQL_MIGRATIONS_DIR=/migrations HASURA_GRAPHQL_METADATA_DIR=/metadata HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT=60 | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=3 CMD [ "/usr/bin/curl", "-fsS", "http://localhost:8080/healthz" ] | ||
CMD ["/usr/local/bin/graphql-engine", "serve"] | ||
USER hasura | ||
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=3 CMD [ "/bin/wget", "-O-", "http://localhost:8080/healthz" ] |