Skip to content

Commit d22d7d0

Browse files
committed
adding gravity example
1 parent 6ce7e2c commit d22d7d0

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

gravity/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Gravity Unikernel Hello World
2+
==================
3+
4+
```sh
5+
gravity -c hi.gravity -o hi.json
6+
```
7+
8+
```sh
9+
$ ops run gravity -c config.json
10+
```

gravity/config.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Files": ["hi.json"],
3+
"Args": ["-x", "hi.json"]
4+
}

gravity/hi.gravity

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
func main() {
2+
System.print("Hello World!")
3+
}

0 commit comments

Comments
 (0)