Skip to content

Commit 64a3eba

Browse files
committed
Update Stellio.
1 parent f15836d commit 64a3eba

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

docker-compose/stellio.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
environment:
2727
- SPRING_PROFILES_ACTIVE=docker
2828
ports:
29-
- "${STELLIO_PORT}:8080"
29+
- "${EXPOSED_PORT}:${STELLIO_PORT}"
3030
networks:
3131
- default
3232

@@ -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,15 +127,10 @@ services:
129127
retries: 20
130128
start_period: 10s
131129

132-
133-
# Tutorial acts as a series of dummy IoT Sensors over HTTP and connects to the Stellio Broker
134130
tutorial:
135131
environment:
136-
- IOTA_DEFAULT_RESOURCE=/iot/d
137-
- DUMMY_DEVICES_PORT=${TUTORIAL_DUMMY_DEVICE_PORT} # Port used by the dummy IOT devices to receive commands
138-
- DUMMY_DEVICES_TRANSPORT=HTTP # Default transport used by dummy Io devices
139-
- DUMMY_DEVICES_PAYLOAD=ULTRALIGHT
140-
- CONTEXT_BROKER=http://api-gateway:${STELLIO_PORT}/ngsi-ld/v1 # URL of the context broker to update context
132+
- "CONTEXT_BROKER=http://stellio:${STELLIO_PORT}/ngsi-ld/v1" # URL of the context broker to update context
133+
141134
networks:
142135
default:
143136
labels:

docker-compose/stellio/kafka/update_run.sh

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

services

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,16 @@ 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"
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
displayServices stellio
189189
waitForStellio
190+
export CONTEXT_BROKER=stellio:8080
191+
loadData
192+
displayServices stellio
190193
;;
191194
"stop")
192195
export $(cat .env | grep "#" -v)

0 commit comments

Comments
 (0)