Skip to content

Commit

Permalink
Misc (#42)
Browse files Browse the repository at this point in the history
* Add copyright statements to go code

* Update readmes

* Update README.md
  • Loading branch information
mattjohnsonpint authored Jan 6, 2024
1 parent 06b4323 commit 216246a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ For example:

```
docker run --name <CONTAINER_NAME> \
-d -p "8080:8080" -p "9080:9080" \
-v <DGRAPH_DATA_PATH>:/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_DATA_PATH>:/dgraph \
--env=DGRAPH_ALPHA_GRAPHQL=lambda-url=http://host.docker.internal:8686/graphql-worker \
dgraph/standalone:latest
```

### Hypermode Plugins
Expand Down
7 changes: 0 additions & 7 deletions hmruntime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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_PATH>:/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.
3 changes: 3 additions & 0 deletions hmruntime/dgraph.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2023 Hypermode, Inc.
*/
package main

import (
Expand Down
3 changes: 3 additions & 0 deletions hmruntime/hostfns.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2023 Hypermode, Inc.
*/
package main

import (
Expand Down
3 changes: 3 additions & 0 deletions hmruntime/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2023 Hypermode, Inc.
*/
package main

import (
Expand Down
3 changes: 3 additions & 0 deletions hmruntime/wasi.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
* Copyright 2023 Hypermode, Inc.
*/
package main

import (
Expand Down

0 comments on commit 216246a

Please sign in to comment.