occlum/demos/bash
2021-12-14 10:58:09 +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 Update bash demo with bom tool and add musl version 2021-10-08 12:34:38 +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 Fix the bash demo by increasing the stack size 2021-12-14 10:58:09 +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