-
-
Notifications
You must be signed in to change notification settings - Fork 603
Extracting output files
After an application runs on OSv and produces an output file, how does one extract it from the OSv image? Since Linux does not (out of the box) have ZFS support, one cannot simply mount the image on the host. So the simplest solution is to have OSv send the file over the network - either have it push the file to some server (using e.g., HTTP, NFS, etc.), or run inside OSv some server which allows the file to be pulled (e.g., using HTTP).
The goal of this document is to document some convenient methods of extracting files from a running OSv
One of the example applications included in the OSv source repository is a simple HTTP server. It is usually used to add a "REST API" to OSv (for remotely monitoring or administrating a guest running OSv), but can also be used for retrieving a file from the image. NOTE: This discussion does not include any sort of security. If your running image is accessibly the Internet, anybody could retrieve your file just like you.
As an example, let's consider an image built with
scripts/build image=rogue