...
 
Commits (3)
FROM jfloff/alpine-python:3.7-slim FROM jfloff/alpine-python:3.7-slim
RUN mkdir bits
COPY . /bits/
WORKDIR /bits
RUN apk -U add python3 py3-pip python3-dev py3-cffi alpine-sdk \ RUN apk -U add python3 py3-pip python3-dev py3-cffi alpine-sdk \
mariadb-connector-c-dev postgresql-dev && \ mariadb-connector-c-dev postgresql-dev && \
pip3 install --upgrade pip && \ pip3 install --upgrade pip && \
...@@ -14,4 +10,9 @@ RUN mkdir -p /var/log/bitsd ...@@ -14,4 +10,9 @@ RUN mkdir -p /var/log/bitsd
EXPOSE 8008 EXPOSE 8008
EXPOSE 8888 EXPOSE 8888
RUN mkdir bits
COPY . /bits/
WORKDIR /bits
ENTRYPOINT ./bootstrap.py && ./bitsd.py ENTRYPOINT ./bootstrap.py && ./bitsd.py
...@@ -66,7 +66,7 @@ def main(): ...@@ -66,7 +66,7 @@ def main():
persistence.start() persistence.start()
server.start() server.start()
#mqtt_listener.start() mqtt_listener.start()
# Add signal handlers... # Add signal handlers...
signal.signal(signal.SIGTERM, sig_handler) signal.signal(signal.SIGTERM, sig_handler)
......
...@@ -22,6 +22,7 @@ from sqlalchemy.exc import IntegrityError ...@@ -22,6 +22,7 @@ from sqlalchemy.exc import IntegrityError
from tornado.options import options from tornado.options import options
from tornado.web import MissingArgumentError, HTTPError, RequestHandler from tornado.web import MissingArgumentError, HTTPError, RequestHandler
import bitsd.listener.notifier as notifier
import bitsd.mqtt_listener.notifier as mqtt_notifier import bitsd.mqtt_listener.notifier as mqtt_notifier
import bitsd.persistence.query as query import bitsd.persistence.query as query
from bitsd.common import LOG, secure_compare from bitsd.common import LOG, secure_compare
......