This is a container that will simply run the DEEP as a Service API component,
with a MODS application module
.
To run the Docker container directly from Docker Hub and start using the API simply run the following command:
$ docker run -ti -p 5000:5000 deephdc/deep-oc-mods
This command will pull the Docker container grom the Docker Hub
deephdc
organization.
If you want to build the container directly in your machine (because you want
to modify the Dockerfile
for instance) follow the following instructions:
Building the container:
-
Get the
DEEP-OC-mods
repository (this repo):$ git clone https://github.com/deephdc/DEEP-OC-mods
-
Build the container:
$ cd DEEP-OC-mods $ docker build -t deephdc/deep-oc-mods .
-
Run the container:
$ docker run -it -p 5000:5000 deephdc/deep-oc-mods
These three steps will download the repository from GitHub and will build the
Docker container locally on your machine. You can inspect and modify the
Dockerfile
in order to check what is going on. For instance, you can pass the
--debug=True
flag to the deepaas-run
command, in order to enable the debug
mode.
Once the container is up and running, browse to http://localhost:5000/docs
to get
the OpenAPI (Swagger) documentation page.