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

Commit

Permalink
#24 fiware platform services update
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Dec 3, 2015
1 parent 35ce0cf commit 7f1876e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
4 changes: 4 additions & 0 deletions docs/server-inrichting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1381,4 +1381,8 @@ Zie http://mapproxy.org/docs/latest/install.html. ::
$ mapproxy-util --version
# Mapproxy 1.6.0

MongoDB Beheer
--------------

Met http://www.phpmoadmin.com, wel eerst PHP5 MongoDB driver installeren: `` apt-get install php5-mongo``. Verder
is beheer URL afgeschermd.
5 changes: 3 additions & 2 deletions src/fiware/docker/iotarush
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ NAME=iotarush
DESC=docker_composition
# Docker-compose file
CONF=/opt/geonovum/sospilot/git/src/fiware/docker/iotarush.yaml
SERVICE_CONTAINERS="docker_iotacpp_1 docker_orion_1 docker_sthcomet_1"
SERVICE_CONTAINERS="docker_iotacpp_1 docker_orion_1 docker_sthcomet_1 docker_mongodb_1"

. /lib/lsb/init-functions

Expand Down Expand Up @@ -75,7 +75,7 @@ case "$1" in
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
stop_containers
purge_services
purge_all
;;

restart)
Expand All @@ -93,6 +93,7 @@ case "$1" in
log_warning_msg "Reinit of $NAME ; all mongodb data will be cleared!!!"
stop_containers
purge_all
/bin/rm -rf /var/lib/mongodb_docker/*
$0 start
;;

Expand Down
34 changes: 25 additions & 9 deletions src/fiware/docker/iotarush.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
mongodbdata:
image: mongo:2.6
volumes:
- /data/db
restart: "no"
command: /bin/echo "Data-only container for mongodb."
#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

mongodb:
image: mongo:2.6
volumes_from:
- mongodbdata

# Port mapping: allow only access on local docker host
ports:
- "127.0.0.1:27017:27017"
expose:
- "27017"
- "27017"

# Use storage on host file system
volumes:
- /var/lib/mongodb_docker:/data/db
command: --smallfiles

# restart: always

orion:
image: geonovum/orionrush
links:
Expand Down
2 changes: 1 addition & 1 deletion src/fiware/docker/sthcomet/subscribe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ curl ${ORION_HOST}:${ORION_PORT}/v1/subscribeContext -s -S\
"notifyConditions": [
{
"type": "ONCHANGE",
"condValues": ["temperature"]
"condValues": ["temperature", "humidity", "pm10", "pm2_5"]
}
],
"throttling": "PT5S"
Expand Down

0 comments on commit 7f1876e

Please sign in to comment.