occlum/demos/bash/README.md
2021-08-13 19:23:16 +08:00

659 B

Run Bash script on Occlum

In this demo, we will show how to run a Bash script inside Occlum.

Bash is the most widely used shell implementation around the world. Previously, we didn't support Bash because of too many technical challenges, such as compilation, lack of fork and execve system calls, etc.

Now, Bash is finally supported with modification to the source code of Bash. We have evaluated and all commands defined in occlum_bash_test.sh are all supported.

Please follow below steps to run this demo:

  1. Download and build Busybox and Occlum-version Bash
./prepare_bash_demo.sh
  1. Run Bash script in Occlum
./run_bash_demo.sh