/usr/local/go/bin/go build -o /opt/bin/submgr cmd/submgr.go && \
mkdir -p /opt/build/container/usr/local
-COPY config config
-
FROM ubuntu:18.04
RUN apt update && apt install -y iputils-ping net-tools curl tcpdump
-COPY --from=submgrbuild /opt/bin/submgr /opt/submgr/config/submgr.yaml /
COPY run_submgr.sh /
COPY --from=submgrbuild /usr/local/include /usr/local/include
COPY --from=submgrbuild /usr/local/lib /usr/local/lib
+### v0.10.4
+* Configmap usage introduced for K8s based deployments
+
### v0.10.3
* The following tools made available in the final docker image: iputils-ping, net-tools, curl and tcpdump
+++ /dev/null
-# Copyright (c) 2019 AT&T Intellectual Property.
-# Copyright (c) 2019 Nokia.
-#
-# 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.
-
-"local":
- "host": ":8080"
-"logger":
- "level": 3
-"rmr":
- "protPort": "tcp:4560"
- "maxSize": 2072
- "numWorkers": 1
-"rtmgr":
- "hostAddr": "rtmgr"
- "port" : 8888
- "baseUrl" : "/ric/v1"
# By default this file is in the docker build directory,
# but the location can configured in the JJB template.
---
-tag: 0.10.3
+tag: 0.10.4
--- /dev/null
+#
+#==================================================================================
+# Copyright (c) 2019 AT&T Intellectual Property.
+# Copyright (c) 2019 Nokia
+#
+# 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.
+#==================================================================================
+#
+#
+# Abstract: Configuration values for the Subscription Manager
+# Date: 4 Oct 2019
+#
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: submgrcfg
+ namespace: ricplt
+data:
+ # FQDN and port info of rtmgr
+ submgrcfg: |
+ "local":
+ "host": ":8080"
+ "logger":
+ "level": 3
+ "rmr":
+ "protPort": "tcp:4560"
+ "maxSize": 2072
+ "numWorkers": 1
+ "rtmgr":
+ "hostAddr": "rtmgr"
+ "port" : 8888
+ "baseUrl" : "/ric/v1"
+
image: jenkins:5000/submgr:test
command: ["/run_submgr.sh"]
env:
- - name: DBAAS_SERVICE_HOST
- value: service-ricplt-dbaas-tcp
- - name: SUBMGR_SEED_SN
- value: "1"
+ - name: DBAAS_SERVICE_HOST
+ value: service-ricplt-dbaas-tcp
+ - name: SUBMGR_SEED_SN
+ value: "1"
+ - name: CFGFILE
+ value: /cfg/submgr-config.yaml
ports:
- - containerPort: 8080
- - containerPort: 4560
- - containerPort: 4561
+ - containerPort: 8080
+ - containerPort: 4560
+ - containerPort: 4561
+ volumeMounts:
+ - mountPath: /cfg
+ name: submgrcfg
+ readOnly: true
+ volumes:
+ - name: submgrcfg
+ configMap:
+ name: submgrcfg
+ items:
+ - key: submgrcfg
+ path: submgr-config.yaml
+ mode: 0644
# Abstract: Starts the submgr service
# Date: 28 May 2019
#
-exec ./submgr -f /submgr.yaml
+exec ./submgr -f $CFGFILE