Skip to content

charlos1204/DEEP-OC-sabrina_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

DEEP-OC-sabrina_test

Build Status

This is a container that will simply run the DEEP as a Service API component, with sabrina_test (src: sabrina_test).

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 charlos1204/deep-oc-sabrina_test

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

Running via docker-compose

docker-compose.yml allows you to run the application with various configurations via docker-compose.

N.B! docker-compose.yml is of version '2.3', one needs docker 17.06.0+ and docker-compose ver.1.16.0+, see https://docs.docker.com/compose/install/

If you want to use Nvidia GPU, you need nvidia-docker and docker-compose ver1.19.0+ , see nvidia/FAQ

Building the container

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:

  1. Get the DEEP-OC-sabrina_test repository (this repo):

    $ git clone https://github.com/charlos1204/DEEP-OC-sabrina_test
  2. Build the container:

    $ cd DEEP-OC-sabrina_test
    $ docker build -t charlos1204/deep-oc-sabrina_test .
  3. Run the container:

    $ docker run -ti -p 5000:5000 -p 6006:6006 charlos1204/deep-oc-sabrina_test

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://localhost:5000 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