Ubuntu-based batteries-included Tcl for Docker
This contains most packages necessary for running Tcl 8.4 applications. It is based on an installation of the packages available in Ubuntu. tclreadline is enabled by default for the root user in the container so you will have a decent prompt at the command line.
This is a fork of the original Tcl 8.6 docker-tcl project by efrecon. In this fork, I've also included the jq tool to assist when working with JSON payloads.
To run and get an interactive Tcl prompt:
docker run -it --rm zerodivide1/tcl84:latest
To build, simply write:
git clone https://github.com/zerodivide1/docker-tcl.git
cd docker-tcl
docker build -t tcl84 .
This image exports /opt/tcl
as a volume and arranges to give that
directory and its sub-directory lib
as additional locations when
looking for packages. This means that you should be able to mount
local directories onto /opt/tcl
to run your own code within the
container.
Additionally, the image exports /opt/data
to place random data that
you might wish to access from within the container.