Our great sponsors
-
init
An init system for simplifying the process of running docker containers as firecracker microvms (by thi-startup)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
For the purpose of the article all the presented code is simplified and truncated of error management. You can find the full implementation on the Ravel Github repository.
For now, our init binary will be mostly a copy of the thi-startup one. This needs to be mounted as a root file system and accompanied by a config file providing the metadata of the container image. Then, we extract the image content into a EXT4 file system and mount it as a second file system.
To do that we use a minimal HTTP router for Go named Flow: