This is an application that executes bash commands in docker containers.
- Clone the repository
git clone https://github.com/v-vlasenko/tasks-executor.git
- Go into directory and set up the virtual environment
cd tasks-executor
python -m venv venv
source venv/bin/activate
- Configure environment variables: create a
.env
file in root folder with following variables:
FLASK_APP=task_executor.py
DATABASE_URL=sqlite:///app.db
FLASK_SECRET_KEY=<your-secret-key>
JWT_SECRET_KEY=<your-sercret-key>
- Install requirements (dependencies)
pip install -r requirements.txt
- Initialize a database
(if you have
ModuleNotFoundError: No module named 'dotenv'
try to exit venv (Ctrl+D) and activating againsource venv/bin/activate
)
flask db init
- Finally run the application with
flask run