Download repository
git clone https://github.com/Bondifuzz/scheduler.git
cd scheduler
Build docker image
docker build -t scheduler .
Run container (locally)
docker run --net=host --rm -it --name=scheduler --env-file=.env scheduler bash
All code and scripts are placed to scheduler repository. Let's clone it.
git clone https://github.com/Bondifuzz/scheduler.git
cd scheduler
Then you should invoke docker-compose
to start all services scheduler depends on.
ln -s local/dotenv .env
ln -s local/docker-compose.yml docker-compose.yml
docker-compose -p scheduler up -d
Finally, you can run scheduler service:
# Install dependencies
pip3 install -r requirements-dev.txt
# Run service
python3 -m scheduler
# Python
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
# Spell cehcking
code --install-extension streetsidesoftware.code-spell-checker
# Config
code --install-extension redhat.vscode-yaml
code --install-extension tamasfe.even-better-toml
# Markdown
code --install-extension bierner.markdown-preview-github-styles
code --install-extension yzhang.markdown-all-in-one
# Developer
code --install-extension Gruntfuggly.todo-tree
code --install-extension donjayamanne.githistory
TODO
# Install dependencies
pip3 install -r requirements-test.txt
# Run unit tests
pytest -vv scheduler/tests/unit
# Run functional tests
pytest -vv scheduler/tests/integration
Download cspell and run to check spell in all sources
sudo apt install nodejs npm
sudo npm install -g cspell
cspell "**/*.{py,md,txt}"