Local Build

You will need the GitHub repository for local image builds.

First, get the Docker files:

$ git clone https://github.com/r-xue/casa6-docker
$ cd casa6-docker/

Then start to build local images

$ docker build --target base -t casa6:base -f Dockerfile .
$ docker build --target latest -t casa6:latest -f Dockerfile .

$ docker image inspect casa6:latest --format='{{.Size}}'
$ docker image inspect casa6:base --format='{{.Size}}'
$ docker history casa6:latest

Now you can log in the container instance from the freshly-built image:

$ docker run -it --platform linux/amd64 casa6:latest bash

Within the container, you can try something like this to verify the installation of casatools:

root@1313297097c3:~# python
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import casatools
>>> print('casatools ver:',casatools.version_string())
casatools ver: 6.2.0.3