Skip to content

typelogic/nfiq2score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fingerprint score server

steps

Usage

REST API

Instantiate a container from the image: docker run --name=restnfiq2 -d --rm nfiq2image2

Get the ip address of the container: docker inspect restnfiq2 | grep -i ipaddr

Send a PUT request to the container's API: curl -s -X PUT 172.17.0.2:8000/upload --upload-file samples/0000998.png

To propagate the REST outside of the host, then docker run --name=restnfiq2 -d -p 80:8000 --rm nfiq2image2

Send PUT request to your host ip address: curl -s -X PUT 192.168.1.2:8000/upload --upload-file samples/0000998.png

The EXPOSE directive inside Dockerfile allows port mapping propagation from container to host. The -p 80:8000 associates the container's 8000 to the host machine's 80. Port 80 open-up is made possible even if user is non-root, because the docker command is merely a client sending a message to the docker daemon already running as root. If -P is specified, than the host port is randomly choosen to map to the container's 8000.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors