4 ms·
The way this works is that you take a package (like nginx or node or what-have-you) and then you use any of the configuration vars like 'File' or 'Dirs' or 'Map
by eyberg 3y ago
The way this works is that you take a package (like nginx or node or what-have-you) and then you use any of the configuration vars like 'File' or 'Dirs' or 'MapDirs' and the like to create the filesystem with what you want on it: https://docs.ops.city/ops/configuration#files https://docs.ops.city/ops/configuration#files .
You can then deploy this as-is with a simple config.json or you can create your own new package (for instance if it's something like node and you want to share it with your team).
- antihero 3y agoAh, cool! I'll look at bundling my tiny webserver as its own package :) https://github.com/radiosilence/nano-web https://github.com/radiosilence/nano-web
- antihero 3y agoI did it!! https://repo.ops.city/v2/packages/radiosilence/nano-web/show https://repo.ops.city/v2/packages/radiosilence/nano-web/show Well chuffed. I couldn't get ops pkg push to work at all, and instead had to manually upload a tar.gz as no matter what I did, it wouldn't find my local image (though it would find it if I did ops pkg load -l nano-web_0.0.1). Is there some sort of Discord or IRC to ask dumb questions instead of spamming up HN? Either way I've made an issue: https://github.com/nanovms/ops/issues/1594 https://github.com/nanovms/ops/issues/1594
- antihero 3y agoEdit: I've made a single character fix for the bug causing the issue (regex matching)
- Alifatisk 3y agoJust watched the demo on running a Rails app on Nano, so fascinating! I wonder how much the performance gain is.