PIRgate now logs immediately for better visualization in Grafana

Gatecounter service added
Gatecounter db now initialized by the gatecounter itself courtesy of SQLAlchemy
This commit is contained in:
Brennen Raimer
2019-11-03 13:49:46 -05:00
parent c2fed99704
commit fa48b3357e
4 changed files with 147 additions and 131 deletions

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM python:3
WORKDIR /usr/src/app
RUN pip install --no-cache-dir sqlalchemy RPi.GPIO mysqlclient Adafruit-MCP3008 Adafruit-GPIO
ENTRYPOINT [ "python3" ]