File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 16
16
#
17
17
# see: https://github.com/FIWARE/helm-charts/
18
18
#
19
- version : " 3.5 "
19
+ version : " 3.8 "
20
20
services :
21
21
# Orion is the context broker
22
22
orion :
23
+ labels :
24
+ org.fiware : ' tutorial'
23
25
image : fiware/orion:${ORION_VERSION}
24
26
hostname : orion
25
27
container_name : fiware-orion
@@ -57,6 +59,7 @@ services:
57
59
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
58
60
- IOTA_REGISTRY_TYPE=mongodb # Whether to hold IoT device info in memory or in a database
59
61
- IOTA_LOG_LEVEL=DEBUG # The log level of the IoT Agent
62
+ - IOTA_DEFAULT_EXPRESSION_LANGUAGE=jexl
60
63
- IOTA_TIMESTAMP=true # Supply timestamp information with each measurement
61
64
- IOTA_CB_NGSI_VERSION=v2 # use NGSIv2 when sending updates for active attributes
62
65
- IOTA_AUTOCAST=true # Ensure Ultralight number values are read as numbers not strings
@@ -72,6 +75,8 @@ services:
72
75
73
76
# Tutorial acts as a series of dummy IoT Sensors over HTTP
74
77
tutorial :
78
+ labels :
79
+ org.fiware : ' tutorial'
75
80
image : fiware/tutorials.context-provider
76
81
hostname : iot-sensors
77
82
container_name : fiware-tutorial
@@ -107,6 +112,8 @@ services:
107
112
108
113
# Database
109
114
mongo-db :
115
+ labels :
116
+ org.fiware : ' tutorial'
110
117
image : mongo:${MONGO_DB_VERSION}
111
118
hostname : mongo-db
112
119
container_name : db-mongo
@@ -126,6 +133,8 @@ services:
126
133
127
134
networks :
128
135
default :
136
+ labels :
137
+ org.fiware : ' tutorial'
129
138
ipam :
130
139
config :
131
140
- subnet : 172.18.1.0/24
Original file line number Diff line number Diff line change @@ -36,15 +36,20 @@ loadData () {
36
36
}
37
37
38
38
stoppingContainers () {
39
- CONTAINERS=$( docker ps -aq)
39
+ CONTAINERS=$( docker ps --filter " label=org.fiware=tutorial " - aq)
40
40
if [[ -n $CONTAINERS ]]; then
41
41
echo " Stopping containers"
42
- docker rm -f $CONTAINERS
42
+ docker rm -f $CONTAINERS || true
43
43
fi
44
44
VOLUMES=$( docker volume ls -qf dangling=true)
45
45
if [[ -n $VOLUMES ]]; then
46
46
echo " Removing old volumes"
47
- docker volume rm $VOLUMES
47
+ docker volume rm $VOLUMES || true
48
+ fi
49
+ NETWORKS=$( docker network ls --filter " label=org.fiware=tutorial" -q)
50
+ if [[ -n $NETWORKS ]]; then
51
+ echo " Removing tutorial networks"
52
+ docker network rm $NETWORKS || true
48
53
fi
49
54
}
50
55
You can’t perform that action at this time.
0 commit comments