Add installe, no automation yet

This commit is contained in:
2024-07-17 17:28:00 +02:00
parent 638736a702
commit 9a8136c8c4
3 changed files with 61 additions and 0 deletions

11
helper/install.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
TARGET_DIR="$HOME/.local/poo-recorder"
mkdir -p $TARGET_DIR
cp ../main.py ../poo.py ../requirements.txt $TARGET_DIR
python -m venv "$TARGET_DIR/venv"
$TARGET_DIR/venv/bin/pip install -r $TARGET_DIR/requirements.txt

15
helper/poo_recorder.conf Normal file
View File

@@ -0,0 +1,15 @@
[program:poo_recorder_backend]
environment=PYTHONUNBUFFERED=1
command=
directory=
user=
group=
autostart=true
autorestart=true
startsecs=1
startretries=100
stopwaitsecs=30
redirect_stderr=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stdout_logfile_maxbytes=5MB
stdout_logfile_backups=5

35
requirements.txt Normal file
View File

@@ -0,0 +1,35 @@
annotated-types==0.7.0
anyio==4.4.0
certifi==2024.7.4
click==8.1.7
dnspython==2.6.1
email_validator==2.2.0
fastapi==0.111.1
fastapi-cli==0.0.4
fastapi-mqtt==2.2.0
gmqtt==0.6.16
h11==0.14.0
httpcore==1.0.5
httptools==0.6.1
httpx==0.27.0
idna==3.7
Jinja2==3.1.4
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
pydantic==2.8.2
pydantic_core==2.20.1
Pygments==2.18.0
python-dotenv==1.0.1
python-multipart==0.0.9
PyYAML==6.0.1
rich==13.7.1
shellingham==1.5.4
sniffio==1.3.1
starlette==0.37.2
typer==0.12.3
typing_extensions==4.12.2
uvicorn==0.30.1
uvloop==0.19.0
watchfiles==0.22.0
websockets==12.0