alganet/shell-versions

By alganet

Updated about 19 hours ago

Multiple versions of multiple shells

Image
Languages & frameworks
Developer tools
0

10K+

alganet/shell-versions repository overview

alganet/shell-versions

Docker Build

Multiple versions of multiple shells. Ideal for testing portable shell scripts.

Images

  • latest - Contains the two most recent versions of each shell. Ideal for testing up to date scripts.
  • all - Everything we can build in a single image. Ideal for testing legacy and backwards compatible scripts.

You can list the shells in your image:

$ docker run -it --rm alganet/shell-versions find /opt -type f
/opt/bash_5.2.15/bin/bash
/opt/dash_0.5.11/bin/dash
...

And run them by choosing a version:

$ docker run -it --rm alganet/shell-versions /opt/bash_5.2.15/bin/bash -c "echo hello there"
hello there

Building Locally

You can pass a list of versions to TARGETS= or use sh shvr.sh [current|targets] to let the script generate a list for you:

$ docker build -t "mymultishell" --build-arg TARGETS="$(sh shvr.sh targets)" .
$ docker run -it --rm "mymultishell" ls /opt

Tag summary

Content type

Image

Digest

sha256:c2d77ae70

Size

139.7 MB

Last updated

about 19 hours ago

docker pull alganet/shell-versions:all