-
Notifications
You must be signed in to change notification settings - Fork 57
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
Adding support for Docker build/run #42
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ubuntu:14.04 | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -y git python2.7-dev python-virtualenv fuse | ||
|
||
ADD . /app | ||
|
||
RUN virtualenv .env && \ | ||
. .env/bin/activate | ||
|
||
RUN pip install . | ||
|
||
ENTRYPOINT [ "/app/malaria" ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ Contributions welcome! | |
Install | ||
======= | ||
|
||
If using Docker, just do ```docker build .``` | ||
|
||
Requires python2, paho-mqtt python library 1.1 or greater, and fusepy. | ||
|
||
``` | ||
|
@@ -70,6 +72,9 @@ optional arguments: | |
(multiprocessing) (default: 1) | ||
``` | ||
|
||
If using Docker version, | ||
docker run flaviostutz/mqtt-malaria [options] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not going to link to third party builds I'm sorry. |
||
|
||
Examples | ||
-------- | ||
|
||
|
@@ -79,6 +84,11 @@ sending as fast as the code allows. | |
malaria publish -P 8 -n 10000 -H mqtt.example.org -s 100 | ||
``` | ||
|
||
For doing the same as above, now using the containerized version: | ||
``` | ||
docker run flaviostutz/mqtt-malaria publish -P 8 -n 10000 -H mqtt.example.org -s 100 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, either convert this to syntax for a locally built docker, or drop it entirely, require container people know what they're doing. |
||
``` | ||
|
||
To fire up 500 processes, each sending 5 messages per second, each sending | ||
1000 messages, with time in flight tracking information | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a bit old?