-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add RunnerService examples * Rename * Setup instructions * Consolidate * Break out setup * Fix headline * Return default lifecycle identity if options are nil * Use json file * Return default only if unset * Fix plural
- Loading branch information
1 parent
be9f21e
commit bca0000
Showing
6 changed files
with
77 additions
and
53 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"script": "export NAME=\"Noname\"\nexport LICENSE=$(cat ../LICENSE)\necho \"LICENSE: $LICENSE\"", | ||
"env": [ | ||
"LICENSE=" | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
runme: | ||
id: 01HF7BT3HBDTRGQAQMH51RDQEC | ||
version: v2.2 | ||
--- | ||
|
||
# GRPC Setup | ||
|
||
Install system dependencies: | ||
|
||
```sh {"id":"01HF7BT3HBDTRGQAQMGTJN1KP3"} | ||
$ brew bundle --no-lock | ||
``` | ||
|
||
## Exercise GRPC interface | ||
|
||
Issue a simple call to the deserialize API, first set markdown input data: | ||
|
||
```sh {"id":"01HF7BT3HBDTRGQAQMH0ZYTWA9"} | ||
export MD="# Ohai this is my cool headline" | ||
``` | ||
|
||
Then issue RPC call and display the result: | ||
|
||
```sh {"closeTerminalOnSuccess":"false","id":"01HF7BT3HBDTRGQAQMH2K85BHG","terminalRows":"15"} | ||
$ data="$(echo $MD | openssl base64 | tr -d '\n')" | ||
$ cd ../.. && grpcurl \ | ||
-cacert /tmp/runme/tls/cert.pem \ | ||
-cert /tmp/runme/tls/cert.pem \ | ||
-key /tmp/runme/tls/key.pem \ | ||
-protoset <(buf build -o -) \ | ||
-d "{\"source\": \"$data\"}" \ | ||
127.0.0.1:9999 runme.parser.v1.ParserService/Deserialize | ||
``` |
This file was deleted.
Oops, something went wrong.
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