Skip to content
Snippets Groups Projects

A Docker Container Offering the MCA Service

The Dockerfile contains all the code to develop the container.

The command to build the container is:

docker build -t docker.nilu.no/ribo/mca_service .

Name and path can be modified according to needs and to the registry where the container will be stored.

To upload the container to a registry, just push it:

docker push docker.nilu.no/ribo/mca_service

To run the container as a service on the local machine use (please note that it maps 2 ports):

docker run -p 8080:8080 -p 1234:1234 -t docker.nilu.no/ribo/mca_service

The service will provide also the APIs and the example in the Pluto Julia notebook.


Quick links

The JSON API: http://localhost:8080/docs/api

The Swagger-UI to access the JSON API: http://localhost:8080/docs/swagger-ui.html

The example notebook: http://localhost:1234/open?path=%2Fnotebook%2FMCA_calculator.jl