/EidfTestDocker

Publishing a Test Docker image for the EIDF service

Primary LanguageRApache License 2.0Apache-2.0

EIDF Test Docker Image

Publishing a Test Docker image for the Edinburgh Internationa Data Facility (EIDF) service.

Docker commands

I need to remember these.

Build a docker image

$ docker build -t eidf .

Run the docker image

$ docker run -it eidf

Run and remove the image

$ docker run --rm eidf

Run images with volumes

$ docker run --rm --volume $(pwd)/input_data:/input_data \
                  --volume $(pwd)/output_data:/output_data eidf

Input data in the input_data directory and the output data (Analytics Ready Data (ARD)) goes into output_data/data and the metadata (resources.json) goes into output_data/metadata.

Push image to dockerhub

Publishing to the github package registry requires authentication so publishing at dockerhub instead.

$ docker login
$ docker tag eidf marioant/eidf
$ docker push marioant/eidf