Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge latest upstream fixes #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM alpine:latest
WORKDIR /emqtt
COPY runner.py requirements.txt ./
COPY requirements.txt ./
RUN apk add --no-cache python3 py3-pip && pip3 install -r requirements.txt
COPY runner.py ./
COPY emqtt ./emqtt
COPY tests ./tests
RUN apk add --no-cache python3 && pip3 install -r requirements.txt
EXPOSE 1025
CMD ["python3", "runner.py"]
8 changes: 4 additions & 4 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

loop = asyncio.get_event_loop()
c = Controller(
emqtt.EMQTTHandler(loop, config),
loop,
config['SMTP_LISTEN_ADDRESS'],
config['SMTP_PORT']
handler=emqtt.EMQTTHandler(loop, config),
loop=loop,
hostname=config['SMTP_LISTEN_ADDRESS'],
port=config['SMTP_PORT']
)

c.start()
Expand Down