File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ports :
2- - name : Orion
3- description : Context Broker
4- port : 1026
5- onOpen : notify
6- - name : Wilma
7- description : PEP Proxy
8- port : 1027
2+ - name : Kurento
3+ description : WebRTC Media Server
4+ port : 8888
95 onOpen : ignore
106 - name : Tutorial App
11- description : Web app displaying context data
12- port : 3000
13- onOpen : open-preview
14- - name : Tutorial Devices
15- description : Dummy IoT Sensors over HTTP
16- port : 3001
17- onOpen : ignore
18- - name : Keyrock
19- description : Identity Manager
20- port : 3005
21- onOpen : open-preview
22- - name : MySQL
23- description : Database for Keyrock
24- port : 3306
25- onOpen : ignore
26- - name : IoT Agent (North Port)
27- description : NGSI data and device provisioning
28- port : 4041
29- onOpen : ignore
30- - name : IoT Agent (South Port)
31- description : Ultralight HTTP measures
32- port : 7896
33- onOpen : ignore
34- - name : MongoDB
35- description : Database for Orion + IoT Agent
36- port : 27017
37- onOpen : ignore
7+ description : Web app generating a media stream
8+ port : 8443
9+ onOpen : open-preview
Original file line number Diff line number Diff line change 1919このチュートリアルでは、[ Docker] ( https://www.docker.com ) コンテナから直接実行で
2020きる一連の演習を紹介していますが、HTTP コールは必要ありません。
2121
22+ [ ![ Open in Gitpod] ( https://gitpod.io/button/open-in-gitpod.svg )] ( https://gitpod.io/#https://github.com/FIWARE/tutorials.Linked-Data/tree/NGSI-v2 )
23+
2224## 内容
2325
2426<details >
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ available.
1515The tutorial introduces a series of exercises which can be run directly from within a [ Docker] ( https://www.docker.com )
1616container, no HTTP calls are required.
1717
18+ [ ![ Open in Gitpod] ( https://gitpod.io/button/open-in-gitpod.svg )] ( https://gitpod.io/#https://github.com/FIWARE/tutorials.Linked-Data/tree/NGSI-v2 )
19+
1820- このチュートリアルは[ 日本語] ( README.ja.md ) でもご覧いただけます。
1921
2022## Contents
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ version: "3.8"
22
33services :
44 kurento-examples :
5+ labels :
6+ org.fiware : ' tutorial'
57 image : fiware/kurento-examples
68 container_name : examples-kurento
79 depends_on :
@@ -21,6 +23,8 @@ services:
2123 - " TUTORIAL_NAME=${TUTORIAL_NAME}"
2224
2325 kurento :
26+ labels :
27+ org.fiware : ' tutorial'
2428 image : kurento/kurento-media-server-plus-filters
2529 hostname : kurento
2630 container_name : fiware-kurento
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ version: "3.8"
22
33services :
44 kurento-examples :
5+ labels :
6+ org.fiware : ' tutorial'
57 image : fiware/kurento-examples
68 container_name : examples-kurento
79 depends_on :
@@ -21,6 +23,8 @@ services:
2123 - " TUTORIAL_NAME=${TUTORIAL_NAME}"
2224
2325 kurento :
26+ labels :
27+ org.fiware : ' tutorial'
2428 image : kurento/kurento-media-server:${KURENTO_VERSION}
2529 hostname : kurento
2630 container_name : fiware-kurento
Original file line number Diff line number Diff line change 1818set -e
1919
2020stoppingContainers () {
21- echo " Stopping running containers"
22- ${dockerCmd} -f docker-compose/kurento-with-filters.yml down -v --remove-orphans
21+ CONTAINERS=$( docker ps --filter " label=org.fiware=tutorial" -aq)
22+ if [[ -n $CONTAINERS ]]; then
23+ echo " Stopping containers"
24+ docker rm -f $CONTAINERS || true
25+ fi
26+ VOLUMES=$( docker volume ls -qf dangling=true)
27+ if [[ -n $VOLUMES ]]; then
28+ echo " Removing old volumes"
29+ docker volume rm $VOLUMES || true
30+ fi
31+ NETWORKS=$( docker network ls --filter " label=org.fiware=tutorial" -q)
32+ if [[ -n $NETWORKS ]]; then
33+ echo " Removing tutorial networks"
34+ docker network rm $NETWORKS || true
35+ fi
2336}
37+
2438startingContainers () {
2539 echo -e " Starting containers: - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (${command} )\033[0m"
2640 echo -e " - \033[1;35mKurento\033[0m is a Media Server"
You can’t perform that action at this time.
0 commit comments