Skip to content

Commit cf8ea50

Browse files
committed
Update Stello
1 parent 4203f99 commit cf8ea50

File tree

6 files changed

+47
-31
lines changed

6 files changed

+47
-31
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ EXPOSED_PORT=1026
44

55
# Orion variables
66
ORION_LD_PORT=1026
7-
ORION_LD_VERSION=1.7.1
7+
ORION_LD_VERSION=1.8.0
88

99
# MongoDB variables
1010
MONGO_DB_PORT=27017

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,4 +1530,4 @@ curl -iX DELETE \
15301530

15311531
## ライセンス
15321532

1533-
[MIT](LICENSE) © 2021-2024 FIWARE Foundation e.V.
1533+
[MIT](LICENSE) © 2021-2025 FIWARE Foundation e.V.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,4 +1487,4 @@ the other [tutorials in this series](https://ngsi-ld-tutorials.rtfd.io)
14871487

14881488
## License
14891489

1490-
[MIT](LICENSE) © 2021-2024 FIWARE Foundation e.V.
1490+
[MIT](LICENSE) © 2021-2025 FIWARE Foundation e.V.

docker-compose/stellio.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ services:
44
hostname: stellio
55
labels:
66
org.fiware: 'tutorial'
7-
image: stellio/stellio-api-gateway:${STELLIO_DOCKER_TAG}
8-
platform: linux/amd64
7+
image: quay.io/fiware/stellio-api-gateway:${STELLIO_DOCKER_TAG}
98
environment:
109
- SPRING_PROFILES_ACTIVE=docker
1110
ports:
12-
- ${EXPOSED_PORT:-1026}:${STELLIO_PORT:-9090}
11+
- "${EXPOSED_PORT}:${STELLIO_PORT}"
12+
networks:
13+
- default
1314

1415
search-service:
1516
container_name: stellio-search-service
1617
labels:
1718
org.fiware: 'tutorial'
18-
image: stellio/stellio-search-service:${STELLIO_DOCKER_TAG}
19-
platform: linux/amd64
19+
image: quay.io/fiware/stellio-search-service:${STELLIO_DOCKER_TAG}
2020
environment:
2121
- SPRING_PROFILES_ACTIVE=docker
2222
- SPRING_R2DBC_URL=r2dbc:postgresql://postgres/stellio_search
@@ -30,10 +30,24 @@ services:
3030
- APPLICATION_TENANTS_1_NAME=openiot
3131
- APPLICATION_TENANTS_1_ISSUER=https://sso.stellio.io/auth/realms/openiot
3232
- APPLICATION_TENANTS_1_DBSCHEMA=openiot
33+
- APPLICATION_TENANTS_2_NAME=farmer
34+
- APPLICATION_TENANTS_2_ISSUER=https://sso.stellio.io/auth/realms/farmer
35+
- APPLICATION_TENANTS_2_DBSCHEMA=farmer
36+
- APPLICATION_TENANTS_3_NAME=vet
37+
- APPLICATION_TENANTS_3_ISSUER=https://sso.stellio.io/auth/realms/vet
38+
- APPLICATION_TENANTS_3_DBSCHEMA=vet
39+
- APPLICATION_TENANTS_4_NAME=contractor
40+
- APPLICATION_TENANTS_4_ISSUER=https://sso.stellio.io/auth/realms/contractor
41+
- APPLICATION_TENANTS_4_DBSCHEMA=contractor
42+
- APPLICATION_TENANTS_5_NAME=weather
43+
- APPLICATION_TENANTS_5_ISSUER=https://sso.stellio.io/auth/realms/weather
44+
- APPLICATION_TENANTS_5_DBSCHEMA=weather
3345
- APPLICATION_PAGINATION_LIMIT-DEFAULT=30
3446
- APPLICATION_PAGINATION_LIMIT-MAX=1000
3547
ports:
3648
- 8083:8083
49+
networks:
50+
- default
3751
restart: always
3852
depends_on:
3953
postgres:
@@ -45,8 +59,7 @@ services:
4559
container_name: stellio-subscription-service
4660
labels:
4761
org.fiware: 'tutorial'
48-
image: stellio/stellio-subscription-service:${STELLIO_DOCKER_TAG}
49-
platform: linux/amd64
62+
image: quay.io/fiware/stellio-subscription-service:${STELLIO_DOCKER_TAG}
5063
environment:
5164
- SPRING_PROFILES_ACTIVE=docker
5265
- SPRING_R2DBC_URL=r2dbc:postgresql://postgres/stellio_subscription
@@ -60,10 +73,24 @@ services:
6073
- APPLICATION_TENANTS_1_NAME=openiot
6174
- APPLICATION_TENANTS_1_ISSUER=https://sso.stellio.io/auth/realms/openiot
6275
- APPLICATION_TENANTS_1_DBSCHEMA=openiot
76+
- APPLICATION_TENANTS_2_NAME=farmer
77+
- APPLICATION_TENANTS_2_ISSUER=https://sso.stellio.io/auth/realms/farmer
78+
- APPLICATION_TENANTS_2_DBSCHEMA=farmer
79+
- APPLICATION_TENANTS_3_NAME=vet
80+
- APPLICATION_TENANTS_3_ISSUER=https://sso.stellio.io/auth/realms/vet
81+
- APPLICATION_TENANTS_3_DBSCHEMA=vet
82+
- APPLICATION_TENANTS_4_NAME=contractor
83+
- APPLICATION_TENANTS_4_ISSUER=https://sso.stellio.io/auth/realms/contractor
84+
- APPLICATION_TENANTS_4_DBSCHEMA=contractor
85+
- APPLICATION_TENANTS_5_NAME=weather
86+
- APPLICATION_TENANTS_5_ISSUER=https://sso.stellio.io/auth/realms/weather
87+
- APPLICATION_TENANTS_5_DBSCHEMA=weather
6388
- APPLICATION_PAGINATION_LIMIT-DEFAULT=30
6489
- APPLICATION_PAGINATION_LIMIT-MAX=1000
6590
ports:
6691
- 8085:8084
92+
networks:
93+
- default
6794
restart: always
6895
depends_on:
6996
postgres:
@@ -74,10 +101,12 @@ services:
74101
kafka:
75102
labels:
76103
org.fiware: 'tutorial'
77-
image: confluentinc/cp-kafka:7.3.1
104+
image: confluentinc/cp-kafka:7.6.0
78105
container_name: kafka
79106
ports:
80107
- 29092:29092
108+
networks:
109+
- default
81110
restart: always
82111
environment:
83112
KAFKA_BROKER_ID: 1
@@ -91,17 +120,14 @@ services:
91120
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
92121
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
93122
KAFKA_LOG4J_ROOT_LOGLEVEL: INFO
94-
volumes:
95-
- ./stellio/kafka/update_run.sh:/tmp/update_run.sh
96-
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
123+
CLUSTER_ID: NjExODZhMWVjMzllMTFlZm
97124

98125

99126
# Databases
100127
postgres:
101128
labels:
102129
org.fiware: 'tutorial'
103130
image: stellio/stellio-timescale-postgis:${STELLIO_TIMESCALE_POSTGIS}
104-
105131
hostname: postgres
106132
container_name: db-postgres
107133
environment:
@@ -112,6 +138,8 @@ services:
112138
- ACCEPT_TIMESCALE_TUNING=TRUE
113139
ports:
114140
- 5432:5432
141+
networks:
142+
- default
115143
volumes:
116144
- postgres-db:/var/lib/postgresql
117145
healthcheck:
@@ -121,7 +149,6 @@ services:
121149
retries: 20
122150
start_period: 10s
123151

124-
125152
# IoT-Agent is configured for the JSON Protocol and connects to the Stellio Broker
126153
iot-agent:
127154
environment:

docker-compose/stellio/kafka/update_run.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

import-data

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
2121
{
2222
"id": "urn:ngsi-ld:Building:farm001",
2323
"type": "Building",
24-
"category": {"type": "Property", "value": ["farm"]},
24+
"category": {"type": "VocabProperty", "vocab": ["farm"]},
2525
"address": {
2626
"type": "Property",
2727
"value": { "streetAddress": "Großer Stern 1", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -37,7 +37,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
3737
{
3838
"id": "urn:ngsi-ld:Building:barn002",
3939
"type": "Building",
40-
"category": {"type": "Property", "value": ["barn"]},
40+
"category": {"type": "VocabProperty", "vocab": ["barn"]},
4141
"address": {
4242
"type": "Property",
4343
"value": { "streetAddress": "Straße des 17. Juni", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -53,7 +53,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
5353
{
5454
"id": "urn:ngsi-ld:Building:tower003",
5555
"type": "Building",
56-
"category": {"type": "Property", "value": ["water_tower"]},
56+
"category": {"type": "VocabProperty", "vocab": ["water_tower"]},
5757
"address": {
5858
"type": "Property",
5959
"value": { "streetAddress": "John-Foster-Dulles-Allee", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -69,7 +69,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
6969
{
7070
"id": "urn:ngsi-ld:Building:farm002",
7171
"type": "Building",
72-
"category": {"type": "Property", "value": ["farm"]},
72+
"category": {"type": "VocabProperty", "vocab": ["farm"]},
7373
"address": {
7474
"type": "Property",
7575
"value": { "streetAddress": "Hardenbergplatz 8", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10787"},

0 commit comments

Comments
 (0)