Skip to content

fasih99/Dockerized-gRPC-Backed-Image-Search-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSE 5306-004: Project 1

Team 14: Kaesi Manakkal & Syed Hussaini

Run natively:

Build client and server

Install other dependencies:

sudo apt update && sudo apt install build-essential cmake

Build server:

mkdir -p src/server/build && cd src/server/build
cmake .. && make -j $(nproc)

Build client:

cd src/client
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m grpc_tools.protoc -I/src --python_out=. --pyi_out=. --grpc_python_out=. /src/project1.proto

run client and server

In one terminal, run the server:

./server -d /root/of/project/db

In another terminal, use the client to make a search:

./client.py -q <query> -o <outfile>

Example:

./client -q Q1 -o random-screenshot.jpg     # get screenshot of the Q1 stage
display random-screenshot.jpg               # use imagemagick to display the file

Using Docker compose:

Build and run:

$ docker compose up --build

Use client:

$ docker ps
# find client (in my case proj1-client-1)

$ docker exec -it proj1-client-1 bash
root@client1:/src# ./client.py -q <query> -o <outfile>
root@client1:/src# ./client.py -q Q1 -o scrn.jpg

screenshot

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published