Download repository
git clone https://github.com/Bondifuzz/pool-manager.git
cd pool-managerBuild docker image
docker build -t bondifuzz/pool-manager .Run container (locally)
docker run --net=host --rm -it --name=pool-manager --env-file=.env -v ~/.kube/config:/root/.kube/config bondifuzz/pool-manager bashAll code and scripts are placed to pool-manager repository. Let's clone it.
git clone https://github.com/Bondifuzz/pool-manager.git
cd pool-managerThen you should invoke docker-compose to start all services pool-manager depends on.
ln -s local/dotenv .env
ln -s local/docker-compose.yml docker-compose.yml
docker-compose -p pool_manager up -dEnsure you have an access to local/remote kubernetes cluster and have an appropriate config in ~/.kube folder. Use commands like kubectl get namespaces, kubectl get pods to ensure all is ok.
Finally, you can run pool-manager service:
# Install dependencies
pip3 install -r requirements-dev.txt
# Run service
python3 -m uvicorn \
--factory pool_manager.app.main:create_app \
--host 127.0.0.1 \
--port 8080 \
--workers 1 \
--log-config logging.yaml \
--lifespan onTODO
# Install dependencies
pip3 install -r requirements-test.txt
# Run unit tests
pytest -vv api-gateway/tests/unit
# Run functional tests
pytest -vv api-gateway/tests/integrationDownload cspell and run to check spell in all sources
sudo apt install nodejs npm
sudo npm install -g cspell
sudo npm install -g @cspell/dict-ru_ru
cspell link add @cspell/dict-ru_ru
cspell "**/*.{py,md,txt}"ms-python.pythonms-python.vscode-pylancestreetsidesoftware.code-spell-checkerstreetsidesoftware.code-spell-checker-russian