Skip to content

Commit

Permalink
fix: Redeploy bdjuno on DO Apps
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Djokic <[email protected]>
  • Loading branch information
filipdjokic authored and ankurdotb committed Sep 8, 2022
1 parent 8e7c529 commit 02266a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.hasura
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
### STAGE 1: Build Hasura CLI pre-requisites ###
###############################################################

FROM alpine:3.16
FROM ubuntu:latest

RUN apk update && apk add --no-cache curl bash
RUN apt update && apt install -y curl
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]

# Get latest Hasura CLI and install
RUN curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash

RUN hasura update-cli
RUN hasura plugins install cli-ext

# Set user directory and details
ARG HOME_DIR="/hasura"
ARG USER="hasura"
Expand Down
2 changes: 1 addition & 1 deletion hasura/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ migrations_directory: migrations
seeds_directory: seeds
actions:
kind: synchronous
handler_webhook_baseurl: ACTIONS_BASE_URL
handler_webhook_baseurl: ACTION_BASE_URL
codegen:
framework: ""
output_dir: ""
4 changes: 2 additions & 2 deletions hasura/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
set -euo pipefail

sed -i "s, HASURA_GRAPHQL_ENDPOINT, '${HASURA_GRAPHQL_ENDPOINT}',g" config.yaml
sed -i "s, ACTIONS_BASE_URL, '${ACTIONS_BASE_URL}',g" config.yaml
sed -i "s, ACTION_BASE_URL, '${ACTION_BASE_URL}',g" config.yaml

hasura metadata apply --config /hasura/config.yaml
hasura metadata apply --endpoint $HASURA_GRAPHQL_ENDPOINT --admin-secret $HASURA_GRAPHQL_ADMIN_SECRET

0 comments on commit 02266a1

Please sign in to comment.