docker/README.md

Create the Docker Image

A quick refresher on docker commands is available at the docker cheatsheet.

A docker image with all required prerequisites can be built with the Makefile in this directory:

make operational_build

This is just shorthand for the following docker build line:

$ docker build --no-cache -t mazamascience/mazamajug:v0.1.6 -t mazamascience/mazamajug:latest .
$ docker images | grep mazamajug
mazamascience/mazamajug        latest              1941f09bda73        7 minutes ago       913MB
mazamascience/mazamajug        v0.1.6              1941f09bda73        7 minutes ago       913MB

It is best practice to create versioned images and tag the most recent one with "latest".

Test the Docker Image

Having built the docker image we can now test it. The following output was obtained on Marh 06, 2018:

docker run -ti mazamascience/mazamajug R --vanilla
...
MazamaWebUtils::mimeType('xls')
[1] "application/vnd.ms-excel (.xls)"

Publish the Docker Image

docker login
...
docker push mazamascience/mazamajug:v0.1.6

Download the Docker Image

A recent image can also be obtained from DockerHub with:

docker pull mazamascience/mazamajug:v0.1.6


MazamaScience/MazamaWebUtils documentation built on May 29, 2019, 2:09 p.m.