Documentation
¶
Overview ¶
compile_c demonstrates compiling and running C code in a sandboxed environment.
This example shows how to: - Use FilesystemSnapshotFactory to cache image setup (gcc installation) - Pull an OCI image (alpine with gcc) - Create a sandbox instance from a cached snapshot - Write C source code to the filesystem - Compile the code using gcc - Execute the compiled binary
Click to show internal directories.
Click to hide internal directories.