stucco-router-azure-worker

command module
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 3 Imported by: 0

README

About

Stucco router that can be run by Azure Functions host.

Usage

Run locally

Currently router can only be ran locally on Linux and macOS because it depends on azure-functions-golang-worker which does not support running plugin functions on Windows.

Dependencies
Run
$ STUCCO_SCHEMA=path/to/schema.graphql STUCCO_CONFIG=path/to/stucco.json STUCCO_WORKER_BASE_URL=http://worker.url func start

Docker

New image

To create new router image just add schema.graphql and stucco.json to base image

FROM gqleditor/stucco-router-azure-worker:latest

COPY schema.graphql /home/site/wwwroot/schema.graphql
COPY stucco.json /home/site/wwwroot/stucco.json
Run using base image
$ docker run -p 8080:80 -e STUCCO_SCHEMA=path/to/schema.graphql -e STUCCO_CONFIG=path/to/stucco.json -e STUCCO_WORKER_BASE_URL=http://worker.url gqleditor/stucco-router-azure-worker:latest

Notes

By default function.json has function auth level which makes them inaccessible locally. Edit authLevel field in graphql/function.json to make it debuggable locally.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL