Skip to content

Commit

Permalink
✨ hasura init
Browse files Browse the repository at this point in the history
  • Loading branch information
tktcorporation committed Jan 16, 2022
1 parent 377642a commit 14e3938
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Expand Up @@ -22,5 +22,10 @@ services:
TF_VAR_heroku_app_name: ${TF_VAR_heroku_app_name}
volumes:
- ./terraform:/workspace:cached
hasura:
build: ./hasura
working_dir: /hasura
volumes:
- .:/hasura
volumes:
node_modules:
14 changes: 14 additions & 0 deletions hasura/Dockerfile
@@ -0,0 +1,14 @@
FROM ubuntu:20.04

RUN apt-get update -y && apt-get install -y curl

# Create Hasura CLI user
# RUN adduser --system --home /hasuracli --disabled-password --group hasuracli
# WORKDIR /hasuracli
# USER hasuracli

# Install HasuraCLI
RUN curl -L https://github.com/hasura/graphql-engine/raw/master/cli/get.sh | INSTALL_PATH=/hasuracli bash

# Run Hasura on start
ENTRYPOINT ["/hasuracli/hasura"]
6 changes: 6 additions & 0 deletions hasura/config.yaml
@@ -0,0 +1,6 @@
version: 3
endpoint: http://localhost:8080
metadata_directory: metadata
actions:
kind: synchronous
handler_webhook_baseurl: http://localhost:3000
Empty file added hasura/metadata/actions.graphql
Empty file.
6 changes: 6 additions & 0 deletions hasura/metadata/actions.yaml
@@ -0,0 +1,6 @@
actions: []
custom_types:
enums: []
input_objects: []
objects: []
scalars: []
1 change: 1 addition & 0 deletions hasura/metadata/allow_list.yaml
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions hasura/metadata/cron_triggers.yaml
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions hasura/metadata/databases/databases.yaml
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions hasura/metadata/query_collections.yaml
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions hasura/metadata/remote_schemas.yaml
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions hasura/metadata/version.yaml
@@ -0,0 +1 @@
version: 3

0 comments on commit 14e3938

Please sign in to comment.