Platform gRPC Integration Module to communicate with Business Module.
Clone this repository:
git clone https://github.com/Emb3rs-Project/m-grpc-business.git
Load submodules:
git submodule init
git submodule update
Create Conda environment and install packages:
conda env create -n business-grpc-module -f environment-py39.yml
conda activate business-grpc-module
Create environment variables config file:
cp .env.example .env
Run grpc server:
PYTHONPATH=$PYTHONPATH:ms-grpc/plibs:module python server.py
Create environment variables config file:
cp .env.example .env
Build docker image:
DOCKER_BUILDKIT=1 docker build -t m-grpc-business .
Run docker image:
docker run -p 50055:50055 --name m-grpc-business --rm m-grpc-business
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 50055:50055 --network dev_embers|platform_embers --name m-grpc-business --rm m-grpc-business