clean up hello world
This commit is contained in:
parent
4e21624ac3
commit
15d98db3ca
3 changed files with 24 additions and 6 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
"JobConfig": {
|
||||
"type": "object",
|
||||
"required": ["outputs", "inputs", "executable"],
|
||||
"required": ["outputs", "inputs","args","env"],
|
||||
"properties": {
|
||||
"outputs": {
|
||||
"type": "array",
|
||||
|
|
@ -47,10 +47,6 @@
|
|||
"type": "object",
|
||||
"additionalProperties": { "type": "string" },
|
||||
"description": "Environment variables"
|
||||
},
|
||||
"executable": {
|
||||
"type": "string",
|
||||
"description": "Path to executable that will be run"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
22
examples/hello_world/README.md
Normal file
22
examples/hello_world/README.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
# Hello World
|
||||
|
||||
Demonstrates a simple parameterized job.
|
||||
|
||||
## Configure
|
||||
|
||||
```bash
|
||||
$ bazel run //:test_job.cfg test_output
|
||||
{"outputs":["test_output"],"inputs":[],"args":["will", "build", "test_output"],"env":{"foo":"bar"}}
|
||||
```
|
||||
|
||||
## Execute
|
||||
|
||||
Doesn't actually write an output.
|
||||
|
||||
```bash
|
||||
$ bazel run //:test_job.cfg test_output | bazel run //:test_job
|
||||
EXECUTE!
|
||||
foo=bar
|
||||
args=will build test_output
|
||||
```
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
# Create a test job config
|
||||
echo "{\"outputs\":[\"$1\"],\"inputs\":[],\"args\":[\"arg1\", \"arg2\"],\"env\":{\"foo\":\"bar\"},\"executable\":\"TODO\"}"
|
||||
echo "{\"outputs\":[\"$1\"],\"inputs\":[],\"args\":[\"will\", \"build\", \"$1\"],\"env\":{\"foo\":\"bar\"}}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue