Skip to content

Commit

Permalink
Update Stello
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jan 16, 2025
1 parent 4203f99 commit cf8ea50
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ EXPOSED_PORT=1026

# Orion variables
ORION_LD_PORT=1026
ORION_LD_VERSION=1.7.1
ORION_LD_VERSION=1.8.0

# MongoDB variables
MONGO_DB_PORT=27017
Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -1530,4 +1530,4 @@ curl -iX DELETE \

## ライセンス

[MIT](LICENSE) © 2021-2024 FIWARE Foundation e.V.
[MIT](LICENSE) © 2021-2025 FIWARE Foundation e.V.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1487,4 +1487,4 @@ the other [tutorials in this series](https://ngsi-ld-tutorials.rtfd.io)

## License

[MIT](LICENSE) © 2021-2024 FIWARE Foundation e.V.
[MIT](LICENSE) © 2021-2025 FIWARE Foundation e.V.
53 changes: 40 additions & 13 deletions docker-compose/stellio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ services:
hostname: stellio
labels:
org.fiware: 'tutorial'
image: stellio/stellio-api-gateway:${STELLIO_DOCKER_TAG}
platform: linux/amd64
image: quay.io/fiware/stellio-api-gateway:${STELLIO_DOCKER_TAG}
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
- ${EXPOSED_PORT:-1026}:${STELLIO_PORT:-9090}
- "${EXPOSED_PORT}:${STELLIO_PORT}"
networks:
- default

search-service:
container_name: stellio-search-service
labels:
org.fiware: 'tutorial'
image: stellio/stellio-search-service:${STELLIO_DOCKER_TAG}
platform: linux/amd64
image: quay.io/fiware/stellio-search-service:${STELLIO_DOCKER_TAG}
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_R2DBC_URL=r2dbc:postgresql://postgres/stellio_search
Expand All @@ -30,10 +30,24 @@ services:
- APPLICATION_TENANTS_1_NAME=openiot
- APPLICATION_TENANTS_1_ISSUER=https://sso.stellio.io/auth/realms/openiot
- APPLICATION_TENANTS_1_DBSCHEMA=openiot
- APPLICATION_TENANTS_2_NAME=farmer
- APPLICATION_TENANTS_2_ISSUER=https://sso.stellio.io/auth/realms/farmer
- APPLICATION_TENANTS_2_DBSCHEMA=farmer
- APPLICATION_TENANTS_3_NAME=vet
- APPLICATION_TENANTS_3_ISSUER=https://sso.stellio.io/auth/realms/vet
- APPLICATION_TENANTS_3_DBSCHEMA=vet
- APPLICATION_TENANTS_4_NAME=contractor
- APPLICATION_TENANTS_4_ISSUER=https://sso.stellio.io/auth/realms/contractor
- APPLICATION_TENANTS_4_DBSCHEMA=contractor
- APPLICATION_TENANTS_5_NAME=weather
- APPLICATION_TENANTS_5_ISSUER=https://sso.stellio.io/auth/realms/weather
- APPLICATION_TENANTS_5_DBSCHEMA=weather
- APPLICATION_PAGINATION_LIMIT-DEFAULT=30
- APPLICATION_PAGINATION_LIMIT-MAX=1000
ports:
- 8083:8083
networks:
- default
restart: always
depends_on:
postgres:
Expand All @@ -45,8 +59,7 @@ services:
container_name: stellio-subscription-service
labels:
org.fiware: 'tutorial'
image: stellio/stellio-subscription-service:${STELLIO_DOCKER_TAG}
platform: linux/amd64
image: quay.io/fiware/stellio-subscription-service:${STELLIO_DOCKER_TAG}
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_R2DBC_URL=r2dbc:postgresql://postgres/stellio_subscription
Expand All @@ -60,10 +73,24 @@ services:
- APPLICATION_TENANTS_1_NAME=openiot
- APPLICATION_TENANTS_1_ISSUER=https://sso.stellio.io/auth/realms/openiot
- APPLICATION_TENANTS_1_DBSCHEMA=openiot
- APPLICATION_TENANTS_2_NAME=farmer
- APPLICATION_TENANTS_2_ISSUER=https://sso.stellio.io/auth/realms/farmer
- APPLICATION_TENANTS_2_DBSCHEMA=farmer
- APPLICATION_TENANTS_3_NAME=vet
- APPLICATION_TENANTS_3_ISSUER=https://sso.stellio.io/auth/realms/vet
- APPLICATION_TENANTS_3_DBSCHEMA=vet
- APPLICATION_TENANTS_4_NAME=contractor
- APPLICATION_TENANTS_4_ISSUER=https://sso.stellio.io/auth/realms/contractor
- APPLICATION_TENANTS_4_DBSCHEMA=contractor
- APPLICATION_TENANTS_5_NAME=weather
- APPLICATION_TENANTS_5_ISSUER=https://sso.stellio.io/auth/realms/weather
- APPLICATION_TENANTS_5_DBSCHEMA=weather
- APPLICATION_PAGINATION_LIMIT-DEFAULT=30
- APPLICATION_PAGINATION_LIMIT-MAX=1000
ports:
- 8085:8084
networks:
- default
restart: always
depends_on:
postgres:
Expand All @@ -74,10 +101,12 @@ services:
kafka:
labels:
org.fiware: 'tutorial'
image: confluentinc/cp-kafka:7.3.1
image: confluentinc/cp-kafka:7.6.0
container_name: kafka
ports:
- 29092:29092
networks:
- default
restart: always
environment:
KAFKA_BROKER_ID: 1
Expand All @@ -91,17 +120,14 @@ services:
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
KAFKA_LOG4J_ROOT_LOGLEVEL: INFO
volumes:
- ./stellio/kafka/update_run.sh:/tmp/update_run.sh
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'"
CLUSTER_ID: NjExODZhMWVjMzllMTFlZm


# Databases
postgres:
labels:
org.fiware: 'tutorial'
image: stellio/stellio-timescale-postgis:${STELLIO_TIMESCALE_POSTGIS}

hostname: postgres
container_name: db-postgres
environment:
Expand All @@ -112,6 +138,8 @@ services:
- ACCEPT_TIMESCALE_TUNING=TRUE
ports:
- 5432:5432
networks:
- default
volumes:
- postgres-db:/var/lib/postgresql
healthcheck:
Expand All @@ -121,7 +149,6 @@ services:
retries: 20
start_period: 10s


# IoT-Agent is configured for the JSON Protocol and connects to the Stellio Broker
iot-agent:
environment:
Expand Down
11 changes: 0 additions & 11 deletions docker-compose/stellio/kafka/update_run.sh

This file was deleted.

8 changes: 4 additions & 4 deletions import-data
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
{
"id": "urn:ngsi-ld:Building:farm001",
"type": "Building",
"category": {"type": "Property", "value": ["farm"]},
"category": {"type": "VocabProperty", "vocab": ["farm"]},
"address": {
"type": "Property",
"value": { "streetAddress": "Großer Stern 1", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
Expand All @@ -37,7 +37,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
{
"id": "urn:ngsi-ld:Building:barn002",
"type": "Building",
"category": {"type": "Property", "value": ["barn"]},
"category": {"type": "VocabProperty", "vocab": ["barn"]},
"address": {
"type": "Property",
"value": { "streetAddress": "Straße des 17. Juni", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
Expand All @@ -53,7 +53,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
{
"id": "urn:ngsi-ld:Building:tower003",
"type": "Building",
"category": {"type": "Property", "value": ["water_tower"]},
"category": {"type": "VocabProperty", "vocab": ["water_tower"]},
"address": {
"type": "Property",
"value": { "streetAddress": "John-Foster-Dulles-Allee", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10557"},
Expand All @@ -69,7 +69,7 @@ curl -s -o /dev/null -X POST 'http://'"${CONTEXT_BROKER}"'/ngsi-ld/v1/entityOper
{
"id": "urn:ngsi-ld:Building:farm002",
"type": "Building",
"category": {"type": "Property", "value": ["farm"]},
"category": {"type": "VocabProperty", "vocab": ["farm"]},
"address": {
"type": "Property",
"value": { "streetAddress": "Hardenbergplatz 8", "addressRegion": "Berlin", "addressLocality": "Tiergarten", "postalCode": "10787"},
Expand Down

0 comments on commit cf8ea50

Please sign in to comment.