Updates to submgr docker entrypoint 31/3131/2
authorJuha Hyttinen <juha.hyttinen@nokia.com>
Fri, 3 Apr 2020 07:11:46 +0000 (10:11 +0300)
committerJuha Hyttinen <juha.hyttinen@nokia.com>
Fri, 3 Apr 2020 08:36:45 +0000 (11:36 +0300)
Change-Id: Ibc0976b9720577d0ac670ff43ce6f24cdce8ae55
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
Dockerfile
config/submgr-config.yaml [new file with mode: 0644]
config/submgr-uta-rtg.rt [new file with mode: 0755]
container-tag.yaml
pkg/teststub/controlRmr.go
test/config-file.json

index 939e0a3..34f5252 100644 (file)
@@ -190,11 +190,18 @@ RUN apt update && apt install -y iputils-ping net-tools curl tcpdump
 
 COPY --from=submgrbuild /manifests /manifests
 
-COPY run_submgr.sh /
 COPY --from=submgrbuild /opt/bin/submgr /
 COPY --from=submgrbuild /usr/local/include /usr/local/include
 COPY --from=submgrbuild /usr/local/lib /usr/local/lib
 RUN ldconfig
 
+COPY run_submgr.sh /
 RUN chmod 755 /run_submgr.sh
-CMD /run_submgr.sh
+
+#default config
+COPY config /opt/config
+ENV CFG_FILE=/opt/config/submgr-config.yaml
+ENV RMR_SEED_RT=/opt/config/submgr-uta-rtg.rt
+
+
+ENTRYPOINT ["/submgr"]
diff --git a/config/submgr-config.yaml b/config/submgr-config.yaml
new file mode 100644 (file)
index 0000000..919e588
--- /dev/null
@@ -0,0 +1,12 @@
+"local":
+  "host": ":8080"
+"logger":
+  "level": 3
+"rmr":
+  "protPort" : "tcp:4560"
+  "maxSize": 8192
+  "numWorkers": 1
+"rtmgr":
+  "hostAddr": "localhost"
+  "port"    : "8989"
+  "baseUrl" : "/ric/v1"
diff --git a/config/submgr-uta-rtg.rt b/config/submgr-uta-rtg.rt
new file mode 100755 (executable)
index 0000000..bc06bd2
--- /dev/null
@@ -0,0 +1,3 @@
+newrt|start
+newrt|end
+
index 3f55a6f..05c006c 100644 (file)
@@ -2,4 +2,4 @@
 # By default this file is in the docker build directory,
 # but the location can configured in the JJB template.
 ---
-tag: "0.4.0-1"
+tag: "0.4.0-2"
index f47bafa..06c434b 100644 (file)
@@ -46,7 +46,7 @@ func (tc *RmrControl) Init(desc string, rtfile string, port string) {
        tc.TestWrapper.Init(desc)
        os.Setenv("RMR_SEED_RT", rtfile)
        os.Setenv("RMR_SRC_ID", "localhost:"+port)
-       //os.Setenv("RMR_RTG_SVC", "localhost:"+port)
+       //os.Setenv("RMR_RTG_SVC", "localhost:"+rtport)
        xapp.Logger.Info("Using rt file %s", os.Getenv("RMR_SEED_RT"))
        xapp.Logger.Info("Using src id  %s", os.Getenv("RMR_SRC_ID"))
        //xapp.Logger.Info("Using rtg svc  %s", os.Getenv("RMR_RTG_SVC"))
index a98d169..5a425dc 100644 (file)
@@ -7,7 +7,7 @@
     },
     "rmr": {
        "protPort": "tcp:14560",
-       "maxSize": 4096,
+       "maxSize": 8192,
        "numWorkers": 1,
        "txMessages": ["RIC_SUB_REQ", "RIC_SUB_DEL_REQ"],
        "rxMessages": ["RIC_SUB_RESP", "RIC_SUB_FAILURE", "RIC_SUB_DEL_RESP", "RIC_SUB_DEL_FAILURE", "RIC_INDICATION"]