From 216246a6e948d294478e041ba4c40fb9bb52fa03 Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Fri, 5 Jan 2024 16:31:56 -0800 Subject: [PATCH] Misc (#42) * Add copyright statements to go code * Update readmes * Update README.md --- README.md | 7 ++++--- hmruntime/README.md | 7 ------- hmruntime/dgraph.go | 3 +++ hmruntime/hostfns.go | 3 +++ hmruntime/main.go | 3 +++ hmruntime/wasi.go | 3 +++ 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e7437cf9..3dbb417c 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,10 @@ For example: ``` docker run --name \ - -d -p "8080:8080" -p "9080:9080" \ - -v :/dgraph dgraph/standalone:latest - --env=DGRAPH_ALPHA_GRAPHQL=lambda-url=http://host.docker.internal:8686/graphql-worker + -d -p 8080:8080 -p 9080:9080 \ + -v :/dgraph \ + --env=DGRAPH_ALPHA_GRAPHQL=lambda-url=http://host.docker.internal:8686/graphql-worker \ + dgraph/standalone:latest ``` ### Hypermode Plugins diff --git a/hmruntime/README.md b/hmruntime/README.md index 99a0e1d4..f6ca9af9 100644 --- a/hmruntime/README.md +++ b/hmruntime/README.md @@ -8,7 +8,6 @@ Hypermode Plugins and executes their Hypermode Functions. The following must be installed on your development workstation or build server: - A [Go](https://go.dev/) compiler, of at least the version specified in [`go.mod`](./go.mod) -- The [Protocol Buffer Compiler](https://grpc.io/docs/protoc-installation/) (`protoc`) ## Building @@ -24,9 +23,3 @@ To build the docker image, from the root directory: `docker build -t hypermode/r - To just use the default `hmplugin1` sample plugin, use `docker run -p 8686:8686 hypermode/runtime --dgraph=http://host.docker.internal:8080`. - Or, mount a plugins directory on the host, use `docker run -p 8686:8686 -v :/plugins hypermode/runtime --dgraph=http://host.docker.internal:8080`. - For example `-v ./plugins/as:/plugins` - -## Notes - -Currently, the `hmplugin1` plugin is hardcoded, so be sure to compile it before -running this. In the future, plugins will be developed independently of the runtime, -and loaded from a database or repository. diff --git a/hmruntime/dgraph.go b/hmruntime/dgraph.go index c394a378..fec80702 100644 --- a/hmruntime/dgraph.go +++ b/hmruntime/dgraph.go @@ -1,3 +1,6 @@ +/* + * Copyright 2023 Hypermode, Inc. + */ package main import ( diff --git a/hmruntime/hostfns.go b/hmruntime/hostfns.go index 96f2b016..b0256d72 100644 --- a/hmruntime/hostfns.go +++ b/hmruntime/hostfns.go @@ -1,3 +1,6 @@ +/* + * Copyright 2023 Hypermode, Inc. + */ package main import ( diff --git a/hmruntime/main.go b/hmruntime/main.go index 90497da5..e7a98b43 100644 --- a/hmruntime/main.go +++ b/hmruntime/main.go @@ -1,3 +1,6 @@ +/* + * Copyright 2023 Hypermode, Inc. + */ package main import ( diff --git a/hmruntime/wasi.go b/hmruntime/wasi.go index dfc22baf..6a6a379b 100644 --- a/hmruntime/wasi.go +++ b/hmruntime/wasi.go @@ -1,3 +1,6 @@ +/* + * Copyright 2023 Hypermode, Inc. + */ package main import (