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
curl https://ops.city/get.sh -sSfL | sh
This program requires GO Version 1.10.x or greater.
Installing from source follows three general steps:
- Clone the repository.
- Install dependencies:
make deps
- Build
make build
For detailed instructions please consult the documentation.
Before learning more about ops
it is a good idea to see some basic usage
examples. Below are links to simple examples using various programming platforms:
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
Feel free to open up a pull request. It's helpful to have your OPS version and the release channel you are using.
ops version
get the release channel (or nightly)
ls .ops/
if using a package get the package hash:
cat .ops/packages/manifest.json| jq '."gnatsd_1.4.1"'
If you have an idea for a new feature and it might take longer than a few hours or days to do it's worth opening a feature request tkt to ideate it first before jumping into code. There might be someone already working on the feature or plans to do something entirely different.
Feel free to email security at.