occlum/demos/bash
2023-11-07 09:26:20 +08:00
..
.gitignore Update bash and fish demo with prebuilt busybox 2021-11-01 12:43:45 +08:00
bash-musl.yaml Update bash and fish demo with prebuilt busybox 2021-11-01 12:43:45 +08:00
bash.yaml Update bash and fish demo with prebuilt busybox 2021-11-01 12:43:45 +08:00
occlum_bash_test.sh Signed-off-by: 景涛 <jingtao3@hust.edu.cn> 2023-04-18 13:12:37 +08:00
README.md Update bash demo with bom tool and add musl version 2021-10-08 12:34:38 +08:00
run_bash_demo.sh Update demos to enable EDMM features 2023-11-07 09:26:20 +08:00

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.

Two versions [musl-libc and glibc] of bash demo is provided:

  • musl-libc bash demo
./run_bash_demo.sh musl
  • glibc bash demo
./run_bash_demo.sh