Skip to content

Commit 7380888

Browse files
committed
Update Stellio.
1 parent 1488cd2 commit 7380888

6 files changed

Lines changed: 14 additions & 23 deletions

File tree

.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 LD variables
66
ORION_LD_PORT=1026
7-
ORION_LD_VERSION=1.7.1
7+
ORION_LD_VERSION=1.8.0
88

99
# Scorpio variables
1010
SCORPIO_PORT=9090

FIWARE Working with Linked Data.postman_collection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
],
360360
"body": {
361361
"mode": "raw",
362-
"raw": "{\n \"id\": \"urn:ngsi-ld:Building:store005\",\n \"type\": \"ビル\",\n \"カテゴリー\": {\n \t\"type\": \"VocabularyProperty\",\n \"vocab\": [\"コマーシャル\"]\n },\n \"住所\": {\n \"type\": \"Property\",\n \"value\": {\n \"streetAddress\": \"Eisenacher Straße 98\",\n \"addressRegion\": \"Berlin\",\n \"addressLocality\": \"Marzahn\",\n \"postalCode\": \"12685\"\n }\n },\n \"場所\": {\n \"type\": \"GeoProperty\",\n \"value\": {\n \"type\": \"Point\",\n \"coordinates\": [13.5646, 52.5435]\n }\n },\n \"名前\": {\n \"type\": \"Property\",\n \"value\": \"Yuusui-en\"\n },\n \"@context\":\"http://context/japanese-user-context.jsonld\"\n}"
362+
"raw": "{\n \"id\": \"urn:ngsi-ld:Building:store005\",\n \"type\": \"ビル\",\n \"カテゴリー\": {\n \t\"type\": \"VocabProperty\",\n \"vocab\": [\"コマーシャル\"]\n },\n \"住所\": {\n \"type\": \"Property\",\n \"value\": {\n \"streetAddress\": \"Eisenacher Straße 98\",\n \"addressRegion\": \"Berlin\",\n \"addressLocality\": \"Marzahn\",\n \"postalCode\": \"12685\"\n }\n },\n \"場所\": {\n \"type\": \"GeoProperty\",\n \"value\": {\n \"type\": \"Point\",\n \"coordinates\": [13.5646, 52.5435]\n }\n },\n \"名前\": {\n \"type\": \"Property\",\n \"value\": \"Yuusui-en\"\n },\n \"@context\":\"http://context/japanese-user-context.jsonld\"\n}"
363363
},
364364
"url": {
365365
"raw": "http://{{orion}}/ngsi-ld/v1/entities/",

docker-compose/stellio.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ services:
7979
kafka:
8080
labels:
8181
org.fiware: 'tutorial'
82-
image: confluentinc/cp-kafka:7.3.1
82+
image: confluentinc/cp-kafka:7.6.0
8383
container_name: kafka
8484
ports:
8585
- 29092:29092
@@ -98,9 +98,7 @@ services:
9898
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
9999
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
100100
KAFKA_LOG4J_ROOT_LOGLEVEL: INFO
101-
volumes:
102-
- ./stellio/kafka/update_run.sh:/tmp/update_run.sh
103-
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'"
101+
CLUSTER_ID: NjExODZhMWVjMzllMTFlZm
104102

105103

106104
# Databases
@@ -129,6 +127,10 @@ services:
129127
retries: 20
130128
start_period: 10s
131129

130+
tutorial:
131+
environment:
132+
- "CONTEXT_BROKER=http://stellio:${STELLIO_PORT}/ngsi-ld/v1" # URL of the context broker to update context
133+
132134

133135
networks:
134136
default:

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
@@ -20,7 +20,7 @@ curl -s -o /dev/null -X POST \
2020
-d '{
2121
"id": "urn:ngsi-ld:Building:store001",
2222
"type": "Building",
23-
"category": {"type": "VocabularyProperty", "vocab": "commercial"},
23+
"category": {"type": "VocabProperty", "vocab": "commercial"},
2424
"address": {
2525
"type": "Property",
2626
"value": {"streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "10439"},
@@ -49,7 +49,7 @@ curl -s -o /dev/null -X POST \
4949
-d '{
5050
"id": "urn:ngsi-ld:Building:store002",
5151
"type": "Building",
52-
"category": {"type": "VocabularyProperty", "vocab": ["commercial"]},
52+
"category": {"type": "VocabProperty", "vocab": ["commercial"]},
5353
"address": {
5454
"type": "Property",
5555
"value": {"streetAddress":"Friedrichstraße 44", "addressRegion":"Berlin", "addressLocality":"Kreuzberg", "postalCode":"10969"},
@@ -74,7 +74,7 @@ curl -s -o /dev/null -X POST \
7474
-d '{
7575
"id": "urn:ngsi-ld:Building:store003",
7676
"type": "Building",
77-
"category": {"type": "VocabularyProperty", "vocab": ["commercial"]},
77+
"category": {"type": "VocabProperty", "vocab": ["commercial"]},
7878
"address": {
7979
"type": "Property",
8080
"value": {"streetAddress":"Mühlenstrasse 10", "addressRegion":"Berlin", "addressLocality":"Friedrichshain", "postalCode":"10243"},
@@ -101,7 +101,7 @@ curl -s -o /dev/null -X POST \
101101
-d '{
102102
"id": "urn:ngsi-ld:Building:store004",
103103
"type": "Building",
104-
"category": {"type": "VocabularyProperty", "vocab": ["commercial"]},
104+
"category": {"type": "VocabProperty", "vocab": ["commercial"]},
105105
"address": {
106106
"type": "Property",
107107
"value": {"streetAddress":"Panoramastraße 1A", "addressRegion":"Berlin", "addressLocality":"Mitte", "postalCode":"10178"},

services

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ case "${command}" in
180180
export $(cat .env | grep "#" -v)
181181
stoppingContainers
182182
waitForCoreContext
183-
echo -e "Starting containers: \033[1;34mStellio\033[0m, \033[1mKafka\033[0m, \033[1mZookeeper\033[0m, \033[1mNeo4j\033[0m, \033[1mPostgreSQL/TimescaleDB\033[0m, and a linked data \033[1mContext\033[0m."
183+
echo -e "Starting containers: \033[1;34mStellio\033[0m, \033[1mKafka\033[0m, \033[1mPostgreSQL/TimescaleDB\033[0m, and a linked data \033[1mContext\033[0m."
184184
echo -e "- \033[1;34mStellio\033[0m is the context broker\n"
185185
echo -e "- Data models \033[1m@context\033[0m (Smart Supermarket) is supplied externally"
186186
echo ""
187187
${dockerCmd} -f docker-compose/common.yml -f docker-compose/stellio.yml up -d --remove-orphans --renew-anon-volumes
188188
waitForMongo
189189
waitForStellio
190-
export CONTEXT_BROKER=api-gateway:8080
190+
export CONTEXT_BROKER=stellio:8080
191191
loadData
192192
displayServices stellio
193193
;;

0 commit comments

Comments
 (0)