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".
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)"
docker login
...
docker push mazamascience/mazamajug:v0.1.6
A recent image can also be obtained from DockerHub with:
docker pull mazamascience/mazamajug:v0.1.6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.