Skip to content

Platform gRPC Integration Module to communicate with TEO Module

License

Notifications You must be signed in to change notification settings

Emb3rs-Project/m-grpc-teo

Repository files navigation

Module gRPC - TEO

Platform gRPC Integration Module to communicate with TEO Module.

Git

Clone this repository:

git clone https://github.com/Emb3rs-Project/m-grpc-teo.git

Load submodules:

git submodule init
git submodule update

Setup Local Environment

Create Conda environment and install packages:

conda env create -n teo-grpc-module -f environment-py39.yml
conda activate teo-grpc-module

Create environment variables config file:

cp .env.example .env

Run grpc server:

PYTHONPATH=$PYTHONPATH:ms-grpc/plibs:module python server.py

Setup Docker Environment

Create environment variables config file:

cp .env.example .env

Build docker image:

DOCKER_BUILDKIT=1 docker build -t m-grpc-teo .

Run docker image:

docker run -p 50053:50053 --name m-grpc-teo --rm m-grpc-teo

NOTE: If you've run docker-dev from the Emb3rs-project repository before, I advise use the embers network in docker run to access PGSQL and change the database settings inside .env to Platform DB.

Run docker image with embers network:

docker run -p 50053:50053 --network dev_embers|platform_embers --name m-grpc-teo --rm m-grpc-teo

About

Platform gRPC Integration Module to communicate with TEO Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages