Skip to content

Commit

Permalink
fix: uses correct image for support ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Jul 15, 2021
1 parent 8ac4f5c commit b199a6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ PORT=8080
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=database
DATABASE_URL=postgresql://user:password@db:5432/database
HASURA_GRAPHQL_DATABASE_URL=postgresql://user:password@db:5432/database
6 changes: 3 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fedormelexin/graphql-engine-arm64:v2.0.0.cli-migrations-v2
FROM fedormelexin/graphql-engine-arm64:v2.0.1.cli-migrations-v2

# # Copy migrations directory
COPY ./migrations /hasura-migrations
Expand All @@ -17,7 +17,7 @@ ENV HASURA_GRAPHQL_PG_CONNECTIONS=15
ENV HASURA_GRAPHQL_CLI_ENVIRONMENT=default

# https://github.com/hasura/graphql-engine/issues/5172#issuecomment-653774367
ENV HASURA_GRAPHQL_MIGRATIONS_DATABASE_ENV_VAR=DATABASE_URL
ENV HASURA_GRAPHQL_MIGRATIONS_DATABASE_ENV_VAR=HASURA_GRAPHQL_DATABASE_URL

# https://github.com/hasura/graphql-engine/issues/4259
ENV HASURA_GRAPHQL_MIGRATIONS_SERVER_TIMEOUT=60
Expand All @@ -29,6 +29,6 @@ ENV HASURA_GRAPHQL_JWT_SECRET=HASURA_GRAPHQL_JWT_SECRET
ENV HASURA_GRAPHQL_ADMIN_SECRET=HASURA_GRAPHQL_ADMIN_SECRET

CMD graphql-engine \
--database-url $DATABASE_URL \
--database-url $HASURA_GRAPHQL_DATABASE_URL \
serve \
--server-port $PORT
2 changes: 1 addition & 1 deletion backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
backend:
container_name: nextjs-hasura-boilerplate-backend
image: nextjs-hasura-boilerplate-backend
image: fedormelexin/graphql-engine-arm64
build:
context: .
depends_on:
Expand Down

1 comment on commit b199a6a

@vercel
Copy link

@vercel vercel bot commented on b199a6a Jul 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.