Skip to content

adnaneds/DEEP-OC-demo_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

DEEP-OC-demo_app

Build Status

This is a container that will run the demo_app application leveraging the DEEP as a Service API component (DEEPaaS API V2).

TODO: create two branches of DEEP-OC that match the two branches in demo-app (master, return-files), so that two different container are built.

Running the container

Directly from Docker Hub

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 -p 6006:6006 -p 8888:8888 deephdc/deep-oc-demo_app

This command will pull the Docker container from the Docker Hub deephdc repository and start the default command (deepaas-run --listen-ip=0.0.0.0).

N.B. For either CPU-based or GPU-based images you can also use udocker.

Building the container

If you want to build the container directly in your machine (because you want to modify the Dockerfile for instance) run the following instructions:

git clone https://github.com/deephdc/DEEP-OC-demo_app
cd DEEP-OC-demo_app
docker build -t deephdc/deep-oc-demo_app .
docker run -ti -p 5000:5000 -p 6006:6006 -p 8888:8888 deephdc/deep-oc-demo_app

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.

Connect to the API

Once the container is up and running, browse to http://0.0.0.0:5000/ui to get the OpenAPI (Swagger) documentation page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published