Platform gRPC Integration Module to communicate with Market Module.
Clone this repository:
git clone https://github.com/Emb3rs-Project/m-grpc-market.gitLoad submodules:
git submodule init
git submodule updateCreate Conda environment and install packages:
conda env create -n market-grpc-module -f environment-py39.yml
conda activate market-grpc-moduleCreate environment variables config file:
cp .env.example .envRun grpc server:
PYTHONPATH=$PYTHONPATH:ms_grpc/plibs:module python server.pyCreate environment variables config file:
cp .env.example .envBuild docker image:
DOCKER_BUILDKIT=1 docker build -t m-grpc-market .Run docker image:
docker run -p 50054:50054 --name m-grpc-market --rm m-grpc-marketNOTE: 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 50054:50054 --network dev_embers|platform_embers --name m-grpc-market --rm m-grpc-market