Setup Nanos for your production app Hack on Nanos

Getting Started

Nanos runs your code faster and more secure. Plus, it’s super easy to set up and start running your app. Let’s get you started with a few easy steps.

Setup Nanos for your production app

TL;DR: Check out OPS - the official Nanos orchestrator.

Want more info? Read on!

Install OPS && Nanos:

curl https://ops.city/get.sh -sSfL | sh
Download a Node package and run a simple webserver:


ops pkg load eyberg/node:v14.2.0 -p 8083 -n -a hi.js
var http = require('http');
http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World\n');
}).listen(8083, "0.0.0.0");
console.log('Server running at http://127.0.0.1:8083/');

If you'd like to install OPS via package management you can use:

Arch Linux

or

HomeBrew

Once you run this example you'll instantly get a feel for things. the OPS documentation is a great place to find more in-depth examples and documentation. Also you can find examples for your favorite language/tool at the ops examples repo.

Hack on Nanos

If you wish to hack on Nanos, then our GitHub is the place to be.

You can find the build envs here:
https://github.com/nanovms/nanos/wiki/Build-Envs

Hack on Nanos

The filesystem currently used by Nanos is TFS. Nanos isn't opposed to other file systems but hasn't identified a large need yet either. As with most of these sections if your team requires different filesystem support please reach out to the NanoVMs team for a support subscription.

For more info on the TFS filesystem.