Lightweight container for hosting bashutils scripts
2.2K
Pre-made containers to make it easier to use and distribute shell scripts based on the advanced capabilities of https://bitbucket.org/solidfire/bashutils
Github: https://github.com/cseelye/bashutils-containers
Docker Hub:
There are two containers available, light and full. Both containers have bash 4.3, bashutils, and supporting tools installed.
On Docker Hub the image repo/tag indicate which container and the version of bashutils that the container includes:
bashutils:1.4.15 (full version)
bashutils-light:1.4.15 (light version)
The variables BASHUTILS, BASHUTILS_HOME and BASHUTILS_VERSION are set in the environment of the container with the information about the version of bashutils available in the container. BASHUTILS_VERSION is also a build arg that you can override to select a particular version to build an image with - the version must be a valid tag from the bashutils bitbucket repo.
You can run these images directly and they will drop into an interactive bash shell with bashutils loaded. If you do this with your home directory mounted as a volume, you can easily run/test your scripts before building a specific image for them.
When you are ready to containerize/distribute your script, the easiest way is to use one of these images as a base, and add any additional tools and your script into the image.
FROM cseelye/bashutils-light:1.4.15
RUN apk update && apk add morepackages
COPY myscript.sh /root/myscript.sh
ENTRYPOINT ["/root/myscript.sh"]
Content type
Image
Digest
Size
10.1 MB
Last updated
over 8 years ago
docker pull cseelye/bashutils-light