1
0
mirror of https://github.com/tiyn/stud.ip-crawler.git synced 2026-02-22 14:44:49 +01:00

database: switching from mysql to sqlite

Currently we only need the db to keep track of the files that were
already downloaded, thus we only use one database and only one table.
A complete sql database is a bit too bulky for this purpose.
By using sqlite we can minimize and embed the db.
This commit is contained in:
TiynGER
2020-11-17 11:04:03 +01:00
parent 415a21da3b
commit 4a8cf45ad3
7 changed files with 29 additions and 71 deletions

View File

@@ -56,21 +56,20 @@ Run `python3 run.py -h` for a help menu and see which ones are important for you
#### Environment-variables
Set the following variables with the -e tag.
| Name | Usage | Default |
| ---- |------ | ------- |
| `USER` | username on the studip server | `admin` |
| `PSWD` | password on the studip server | `admin` |
| `URL` | url of the studip server | `admin` |
| `HOST` | ip of the mysql instance to connect | `mysql` |
| `DB_USER` | username of the mysql instance to connect | `root` |
| `DB_PSWD` | password of the mysql instance to connect | `root` |
| `INTERVAl` | update interval in seconds | `86400` |
| Name | Usage | Default |
| ---------- | ----------------------------- | ------- |
| `USER` | username on the studip server | `admin` |
| `PSWD` | password on the studip server | `admin` |
| `URL` | url of the studip server | `admin` |
| `INTERVAl` | update interval in seconds | `86400` |
#### Volumes
Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description |
| ----------- | --------------- | ----------------------------------- |
| Volume-Name | Container mount | Description |
| ------------- | ------------------ | ----------------------------------------- |
| `studip_data` | `/studip/src/data` | directory for studip files to be saved to |
#### docker-compose.yml