Skip to content

Commit a415dbf

Browse files
committed
Update Stellio
1 parent 022f5f6 commit a415dbf

File tree

5 files changed

+22
-29
lines changed

5 files changed

+22
-29
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
#1.5.1
99

1010
# Scorpio variables

docker-compose/stellio.yml

Lines changed: 16 additions & 12 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
@@ -34,6 +34,8 @@ services:
3434
- APPLICATION_PAGINATION_LIMIT-MAX=1000
3535
ports:
3636
- 8083:8083
37+
networks:
38+
- default
3739
restart: always
3840
depends_on:
3941
postgres:
@@ -45,8 +47,7 @@ services:
4547
container_name: stellio-subscription-service
4648
labels:
4749
org.fiware: 'tutorial'
48-
image: stellio/stellio-subscription-service:${STELLIO_DOCKER_TAG}
49-
platform: linux/amd64
50+
image: quay.io/fiware/stellio-subscription-service:${STELLIO_DOCKER_TAG}
5051
environment:
5152
- SPRING_PROFILES_ACTIVE=docker
5253
- SPRING_R2DBC_URL=r2dbc:postgresql://postgres/stellio_subscription
@@ -64,6 +65,8 @@ services:
6465
- APPLICATION_PAGINATION_LIMIT-MAX=1000
6566
ports:
6667
- 8085:8084
68+
networks:
69+
- default
6770
restart: always
6871
depends_on:
6972
postgres:
@@ -74,10 +77,12 @@ services:
7477
kafka:
7578
labels:
7679
org.fiware: 'tutorial'
77-
image: confluentinc/cp-kafka:7.3.1
80+
image: confluentinc/cp-kafka:7.6.0
7881
container_name: kafka
7982
ports:
8083
- 29092:29092
84+
networks:
85+
- default
8186
restart: always
8287
environment:
8388
KAFKA_BROKER_ID: 1
@@ -91,17 +96,14 @@ services:
9196
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
9297
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
9398
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'"
99+
CLUSTER_ID: NjExODZhMWVjMzllMTFlZm
97100

98101

99102
# Databases
100103
postgres:
101104
labels:
102105
org.fiware: 'tutorial'
103106
image: stellio/stellio-timescale-postgis:${STELLIO_TIMESCALE_POSTGIS}
104-
105107
hostname: postgres
106108
container_name: db-postgres
107109
environment:
@@ -112,6 +114,8 @@ services:
112114
- ACCEPT_TIMESCALE_TUNING=TRUE
113115
ports:
114116
- 5432:5432
117+
networks:
118+
- default
115119
volumes:
116120
- postgres-db:/var/lib/postgresql
117121
healthcheck:

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"},
@@ -49,7 +49,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
4949
{
5050
"id": "urn:ngsi-ld:Building:barn002",
5151
"type": "Building",
52-
"category": {"type": "Property", "value": ["barn"]},
52+
"category": {"type": "VocabProperty", "vocab": ["barn"]},
5353
"address": {
5454
"type": "Property",
5555
"value": { "streetAddress": "Straße des 17. Juni", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -77,7 +77,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
7777
{
7878
"id": "urn:ngsi-ld:Building:tower003",
7979
"type": "Building",
80-
"category": {"type": "Property", "value": ["water_tower"]},
80+
"category": {"type": "VocabProperty", "vocab": ["water_tower"]},
8181
"address": {
8282
"type": "Property",
8383
"value": { "streetAddress": "John-Foster-Dulles-Allee", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
@@ -93,7 +93,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
9393
{
9494
"id": "urn:ngsi-ld:Building:farm002",
9595
"type": "Building",
96-
"category": {"type": "Property", "value": ["farm"]},
96+
"category": {"type": "VocabProperty", "vocab": ["farm"]},
9797
"address": {
9898
"type": "Property",
9999
"value": { "streetAddress": "Hardenbergplatz 8", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10787"},

services

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ case "${command}" in
255255
export $(cat .env | grep "#" -v)
256256
stoppingContainers
257257
waitForCoreContext
258-
echo -e "Starting containers: \033[1;34mStellio\033[0m, \033[1;36mIoT-Agent\033[0m, \033[1mTutorial\033[0m, a linked data \033[1mContext\033[0m and a \033[1mMongoDB\033[0m database."
258+
echo -e "Starting containers: \033[1;34mStellio\033[0m, \033[1;36mIoT-Agent\033[0m, \033[1mTutorial\033[0m, \033[1mKafka\033[0m, \033[1mPostgreSQL/TimescaleDB\033[0m, and a linked data \033[1mContext\033[0m."
259259
echo -e "- \033[1;34mStellio\033[0m is the context broker"
260260
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
261261
echo -e "- \033[1mTutorial\033[0m displays a web app to manipulate the context directly"

0 commit comments

Comments
 (0)