-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,16 @@ MAINTAINER Jordi Moraleda <[email protected]> | |
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
ADD package.json /usr/src/app/package.json | ||
|
||
# Native dependencies | ||
RUN apk --update add --no-cache make git g++ python zeromq-dev \ | ||
&& npm install -g nodemon \ | ||
&& git clone https://github.com/TvrboPro/TinyZmq.git . \ | ||
&& npm install --production \ | ||
&& apk del --purge g++ python | ||
|
||
ADD . /usr/src/app | ||
|
||
CMD nodemon -L -d 2 example.broker.js | ||
#CMD nodemon -L -d 2 example.worker.js | ||
#CMD nodemon -L -d 2 example.client.js | ||
# uncomment the appropriate command below | ||
|
||
CMD nodemon -L -d 1 example.broker.js | ||
#CMD nodemon -L -d 1 example.worker.js | ||
#CMD nodemon -L -d 1 example.client.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const broker = require('tiny-zmq').broker; | ||
const broker = require('.').broker; | ||
|
||
broker.bind({ | ||
clientsPort: 5559, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "tiny-zmq", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A NodeJS package that provides simple load balanced messaging on distributed environments", | ||
"main": "index.js", | ||
"keywords": ["zmq", "messaging", "tvrbo", "ventilator", "clustering", "cluster", "load", "balancing", "broker", "worker", "client"], | ||
"keywords": [ "zmq", "messaging", "tvrbo", "ventilator", "clustering", "cluster", "load", "balancing", "broker", "worker", "client" ], | ||
"author": "Jordi Moraleda <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|