Ops is the main interface for creating and running a Nanos unikernel. It is used to package, create and run your application as a nanos unikernel instance.
Check out the DOCS
This program requires GO Version 1.10.x or greater.
- Clone the repository.
- Install dependencies:
make deps
- Build
make build
sudo ops net setup
sudo ops net reset
ops build <ELFBinary>
ops run <ELFBinary>
OR
ops run -p <port> <ELFBinary>
ops run -p <port> -c <file> <ELFBinary>
ops config files are plain JSON, below is an example
{
"Args":["one","two"],
"Dirs":["myapp/static"]
}
## File layout on local host machine
-myapp
app
-static
-example.html
-stylesheet
-main.css
## File layout on VM
/myapp
app
/static
-example.html
/stylesheet
-main.css