Go to file
Jake Hillion f7f8004323
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
better argument preparation
2022-04-08 21:04:11 +01:00
.vscode basic example application 2022-02-28 20:42:44 +00:00
benches added clone namespace benchmarks 2022-03-28 01:47:51 +01:00
examples wip: echo example 2022-03-01 11:29:21 +00:00
src better argument preparation 2022-04-08 21:04:11 +01:00
.clang-format pipe triggers 2022-03-01 11:29:13 +00:00
.drone.yml added dronefile 2022-03-28 16:51:35 +01:00
.gitignore clone3 wrapper 2022-02-11 16:27:45 +00:00
build.rs specification and initial launching 2022-02-13 23:52:41 +00:00
Cargo.lock building the void 2022-03-29 11:28:53 +01:00
Cargo.toml building the void 2022-03-29 11:28:53 +01:00
README.md added mount namespace separation 2022-04-08 11:08:55 +01:00

clone-shim

Running the examples

examples/basic

The basic example instructs the shim to spawn two processes, each of which writes "hello from main{1,2}!" to stdout.

To run this example:

cargo build
cargo build --example basic
sudo target/debug/clone-shim -s examples/basic/spec.json target/debug/examples/basic

examples/pipes

The pipes example shows some of the power of the shim by using pipes. The process "pipe_sender" sends two messages down a pipe that it's given by the shim. These two messages each spawn a completely isolated process, "pipe_receiver", that receives that message.

To run this example:

cargo build
cargo build --example pipes
sudo target/debug/clone-shim -s examples/pipes/spec.json target/debug/examples/pipes