Documentation
¶
Overview ¶
voltest — HTTP server that persists messages to a mounted volume.
Endpoints:
POST /write?msg=hello append a message to /data/log.txt GET / list all messages written so far DELETE /reset clear the log
Mount a volume at /data to verify persistence across VM restarts:
jerboa volume create testdata jerboa build ./voltest --name voltest jerboa run voltest:latest -v testdata:/data -p 8080:8080 --name v1 curl -X POST "http://localhost:8080/write?msg=hello" curl -X POST "http://localhost:8080/write?msg=world" curl http://localhost:8080/ jerboa stop v1 && jerboa rm v1 jerboa run voltest:latest -v testdata:/data -p 8080:8080 --name v2 curl http://localhost:8080/ ← still shows "hello" and "world"
Click to show internal directories.
Click to hide internal directories.