OSv unikernel supports multiple filesystems - ZFS (Zeta File System), ROFS (Read-Only File System) and RamFS. This means that user can build an image, run it and have OSv mount one of these filesystems.
ZFS is the original and default filesystem OSv images built by Capstan come with. ZFS is very performant read-write file system ideal for running stateful apps on OSv when data needs to be changed and persisted. For more details please read this and that.
Read-Only Filesystem has been added recently to OSv and requires latest version 0.51. As the name suggests ROFS allows only reading data from files and therefore well suites running stateless applications on OSv when only code has to be accessed. For more details look at this commit and original Python script.
When composing OSv images using capstan package compose
, please select desired filesystem using new -fs
option like so:
capstan package compose --fs rofs <my-package-name>