Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
#24 FIWARE extended Orion version with Rush
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Nov 10, 2015
1 parent 6bf96f2 commit 601dafd
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fiware/docker/iota.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ orion:
- mongodb
ports:
- "1026:1026"
command: -dbhost mongodb -rush localhost:5001 -logDir /var/log/contextBroker
command: -dbhost mongodb -logDir /var/log/contextBroker

iotacpp:
image: telefonicaiot/iotacpp
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions src/fiware/docker/iotarush.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
mongodbdata:
image: mongo:2.6
volumes:
- /data/db
restart: "no"
command: /bin/echo "Data-only container for mongodb."

mongodb:
image: mongo:2.6
volumes_from:
- mongodbdata
expose:
- "27017"
command: --smallfiles

orion:
image: geonovum/orionrush
links:
- mongodb
ports:
- "1026:1026"

iotacpp:
image: telefonicaiot/iotacpp
links:
- mongodb
- orion
ports:
- "185.21.189.59:8000:8080"
- "185.21.189.59:8081:8081"
- "185.21.189.59:1883:1883"
2 changes: 1 addition & 1 deletion src/fiware/docker/orionrush/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN \
curl https://codeload.github.com/telefonicaid/Rush/tar.gz/${RUSH_VERSION} > Rush-${RUSH_VERSION}.tar.gz && \
tar xzvf Rush-${RUSH_VERSION}.tar.gz && \
cd Rush-${RUSH_VERSION} && \
npm install --production && \
npm install --production
# set mongodb host as linked in docker-compose iota.yml
# export RUSH_GEN_MONGO=${MONGODB_HOST}
# bin/listener
Expand Down
2 changes: 1 addition & 1 deletion src/fiware/docker/orionrush/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export RUSH_GEN_MONGO=${MONGODB_HOST}
bin/listener > /var/log/rush-listener.log 2>&1 &
bin/consumer > /var/log/rush-consumer.log 2>&1 &

/usr/bin/contextBroker -fg -multiservice -rush localhost:5001 -logDir /var/log/contextBroker
/usr/bin/contextBroker -dbhost ${MONGODB_HOST} -fg -multiservice -rush localhost:5001 -logDir /var/log/contextBroker


0 comments on commit 601dafd

Please sign in to comment.