Added docker support + readme instructions

This commit is contained in:
2022-10-03 20:56:26 +02:00
parent aec4cdfdfa
commit adc9073683
3 changed files with 192 additions and 0 deletions

View File

@@ -19,7 +19,12 @@ steps:
```
## Usage
Python:
```py
# Copy and update settings
cp .env.sample .env
nano .env
# Install requirements
pip install -r requirements.txt
pip install -e .
@@ -30,3 +35,19 @@ nano .qbit-ci.yaml
# Start the app
python qbit_ci
```
Docker:
```sh
# Copy and update settings
cp .env.sample .env
nano .env
# Create a qbit-ci config file
nano .qbit-ci.yaml
# Run qbit-ci
docker run \
--env-file .env \
--mount type=bind,source=$(pwd)/.qbit-ci.yaml,target=/app/.qbit-ci.yaml \
git.cesium.pw/niku/qbit-ci:latest
```