Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.15 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.15 KB

jibjib-setup

Easy setup for the fabulous JibJib service with docker stack.

First build the JibJib API Service image:

git clone https://github.com/gojibjib/jibjib-api
cd jibjib-api
docker build --tag=jibjib .
cd ..

Then clone this repository:

git clone https://github.com/jdobber/jibjib-setup.git
cd jibjib-setup

Set the environment and fetch all additional assets (model etc.). This will fetch approx. 500 MB and may take some time:

source ./set_env.sh 
./setup.sh

Pull all other images:

docker pull obitech/tensorflow-serving:devel-cpu
docker pull obitech/jibjib-query

Then deploy the stack (maybe you need to perfom docker swarm init before):

docker stack deploy -c docker-compose.yml --prune jibjib

Wait for MongoDB to show up (use docker ps to check):

Then run (and only once):

./init_mongodb.sh

Check the service at: http://<your_ip>:8000

See here for API endpoints and documentation about how to query the service.

Finally, If you want to stop the service and remove the stack:

docker stack rm jibjib