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
FROM hasuraci/postgres-server:8472f79 | |
ENV PLUGIN_VERSION=v0.6.0 | |
# Install the packages which will be required to get everything to compile | |
RUN apt-get update \ | |
&& apt-get install -f -y --no-install-recommends \ | |
software-properties-common \ | |
build-essential \ | |
pkg-config \ | |
git \ |
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
from src import app | |
from flask import jsonify, request | |
@app.route("/") | |
def hello(): | |
return json.dumps({"message":"Autobots Assemble"}) | |
@app.route("/<process_topic>", methods=['POST']) | |
def process_url(process_topic): | |
topic = process_topic[8:] # remove 'process-' and get topic |
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
from src import app | |
from flask import jsonify, request | |
import requests | |
import json | |
import redis | |
R = redis.Redis( | |
host='session-redis.hasura', | |
decode_responses=True | |
) |
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
#!/bin/bash | |
set -e | |
{ echo "host replication admin 0.0.0.0/0 trust"; } >> "$PGDATA/pg_hba.conf" |
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
import json, subprocess | |
fui = { | |
'/': { | |
'enableAuth': True, | |
'enableCORS': True, | |
'enableWebsockets': True, | |
'restrictToRoles': ['admin'], | |
'upstreamService': { | |
'name': 'fission-ui', |