To remove run:
`./pmrapp-tear-down.sh`
-
### Tools for monitoring
Open browser to redpanda (kafka gui) - watch topics, messages etc\
-browser: `localhost:8780`
+browser: `<host ip>:8780`
-Open brower to minio - available only if minio is given on the cmd line when starting the demo\
+Open brower to minio \
user: admin pwd: adminadmin\
-browser: `localhost:9001`
+browser: `<host ip>:9001`
+Open brower to control-panel \
+browser: `<host ip>:8088/ei-coordinator`
### Push data - basic
--- /dev/null
+################################################################################
+# Copyright (c) 2023 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+events{}
+
+http {
+ include /etc/nginx/mime.types;
+
+ resolver 127.0.0.11;
+
+ server {
+ listen 8080;
+ server_name localhost;
+ root /usr/share/nginx/html;
+ index index.html;
+ location /a1-policy/ {
+ set $upstream nonrtricgateway;
+ proxy_pass http://$upstream:9090;
+ }
+ location /data-producer/ {
+ set $upstream nonrtricgateway;
+ proxy_pass http://$upstream:9090;
+ }
+ location /data-consumer/ {
+ set $upstream nonrtricgateway;
+ proxy_pass http://$upstream:9090;
+ }
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+ }
+}
--- /dev/null
+################################################################################
+# Copyright (c) 2023 Nordix Foundation. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+server:
+ port: 9090
+spring:
+ cloud:
+ gateway:
+ httpclient:
+ ssl:
+ useInsecureTrustManager: true
+ wiretap: true
+ httpserver:
+ wiretap: true
+ routes:
+ - id: A1-EI2
+ uri: http://ics:8083
+ predicates:
+ - Path=/data-producer/**,/data-consumer/**
+management:
+ endpoint:
+ gateway:
+ enabled: true
+ endpoints:
+ web:
+ exposure:
+ include: "gateway,loggers,logfile,health,info,metrics,threaddump,heapdump"
+logging:
+ level:
+ ROOT: ERROR
+ org.springframework: ERROR
+ org.springframework.cloud.gateway: INFO
+ reactor.netty: INFO
+ file:
+ name: /var/log/nonrtric-gateway/application.log
- "ranpm=yes"
volumes:
- /tmp/minio-test/0:/data
+
+ nonrtric-gateway:
+ image: ${NONRTRIC_GATEWAY_IMAGE}
+ container_name: nonrtricgateway
+ depends_on:
+ - ics
+ ports:
+ - 9098:9090
+ volumes:
+ - ./config/ngw/application.yaml:/opt/app/nonrtric-gateway/config/application.yaml
+ labels:
+ - "ranpm=yes"
+
+ control-panel:
+ image: ${CONTROL_PANEL_IMAGE}
+ container_name: controlpanel
+ depends_on:
+ - nonrtric-gateway
+ ports:
+ - 8088:8080
+ volumes:
+ - ./config/control-panel/nginx.conf:/etc/nginx/nginx.conf
+ labels:
+ - "ranpm=yes"
export AUTH_TOKEN_IMAGE=nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-plt-auth-token-fetch:1.1.1
pull_image $AUTH_TOKEN_IMAGE
+
+export NONRTRIC_GATEWAY_IMAGE=nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-gateway:1.2.0
+pull_image $NONRTRIC_GATEWAY_IMAGE
+
+export CONTROL_PANEL_IMAGE=nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-controlpanel:2.5.0
+pull_image $CONTROL_PANEL_IMAGE
}
setup_keycloak() {
setup_kafka() {
echo "Starting containers for: kafka, zookeeper, kafka client, ics, minio"
-envsubst '$DMAAP_IMAGE,$VES_COLLECTOR_IMAGE,$ICS_IMAGE,$REDPANDA_IMAGE,$STRIMZI_IMAGE,$MINIO_IMAGE' < docker-compose-k1.yaml > docker-compose-k1_gen.yaml
+envsubst < docker-compose-k1.yaml > docker-compose-k1_gen.yaml
docker-compose -p common -f docker-compose-k1_gen.yaml up -d
}