Skip to content

Commit

Permalink
⬆️ Upgrade hasura to v1.3.3
Browse files Browse the repository at this point in the history
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
Shark committed Jan 15, 2021
1 parent 4a6bc11 commit db9008d
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions database/Dockerfile
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" ]

0 comments on commit db9008d

Please sign in to comment.