stage 'Publish Artifact'\r
\r
withCredentials([usernamePassword(credentialsId: MECHID, usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {\r
- dir("smo-vth") {\r
+ dir("docker") {\r
echo "Artifact: " + IMAGE_NAME\r
\r
sh """\r
-FROM python:3.7.4\r
-\r
-RUN python --version\r
-\r
-ADD pip-requirements.txt pip-requirements.txt\r
-ADD a1-mediator-vth.py a1-mediator-vth.py\r
-ADD config.json config.json\r
-\r
-RUN mkdir -p /otf/logs\r
-\r
-RUN python -m pip install --proxy -r pip-requirements.txt\r
-\r
-ENTRYPOINT ["python", "a1-mediator-vth.py"]\r
+FROM python:3.7.4
+
+RUN python --version
+
+ADD pip-requirements.txt pip-requirements.txt
+ADD a1-mediator-vth.py a1-mediator-vth.py
+ADD config.json config.json
+
+RUN mkdir -p /otf/logs
+
+RUN python -m pip install -r pip-requirements.txt
+
+ENTRYPOINT ["python", "a1-mediator-vth.py"]
--- /dev/null
+---
+# Copyright (c) 2019 AT&T Intellectual Property.
+#
+# 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.
+tag: 0.0.1
stage 'Publish Artifact'\r
\r
withCredentials([usernamePassword(credentialsId: MECHID, usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {\r
- dir("dmaap-vth")\r
+ dir("docker")\r
echo "Artifact: " + IMAGE_NAME\r
\r
sh """\r
\r
withCredentials([file(credentialsId: KUBE_CONFIG, variable: 'KUBECONFIG')]) {\r
\r
- dir('dmaap-vth/helm'){\r
+ dir('helm'){\r
//check if charts are valid, and then perform dry run, if successful then upgrade/install charts\r
\r
if (PHASES.contains("UNDEPLOY") ) {\r
--- /dev/null
+---
+# Copyright (c) 2019 AT&T Intellectual Property.
+#
+# 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.
+tag: 0.0.1
\r
withCredentials([usernamePassword(credentialsId: MECHID, usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {\r
\r
- dir("o1-vth"){\r
+ dir("docker"){\r
echo "Artifact: " + IMAGE_NAME\r
\r
sh """\r
\r
withCredentials([file(credentialsId: KUBE_CONFIG, variable: 'KUBECONFIG')]) {\r
\r
- dir('o1-vth/helm'){\r
+ dir('helm'){\r
//check if charts are valid, and then perform dry run, if successful then upgrade/install charts\r
\r
if (PHASES.contains("UNDEPLOY") ) {\r
--- /dev/null
+---
+# Copyright (c) 2019 AT&T Intellectual Property.
+#
+# 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.
+tag: 0.0.1
apiVersion: v1\r
appVersion: "1.0"\r
description: A Helm chart for the o1 Virtual Test Head\r
-name: o1-vth\r
+name: smo-o1-vth\r
version: 0.0.1\r
-appName: o1-vth\r
+appName: smo-o1-vth\r
env: dev\r
version: 0.0.1-SNAPSHOT\r
-image: o1-vth:0.0.1-SNAPSHOT\r
+image: smo-o1-vth:0.0.1-SNAPSHOT\r
namespace: org-oran-otf\r
nodePort: 32130\r
replicas: 1\r
# See the License for the specific language governing permissions and #\r
# limitations under the License. #\r
################################################################################\r
-# File name: o1-vth.py #\r
+# File name: smo-o1-vth.py #\r
# Description: Mainly used to get alarm list #\r
# Date created: 04/14/2020 #\r
# Python Version: 3.7 #\r
return 'UP'\r
\r
if __name__ == '__main__':\r
- logHandler = FileHandler('o1-vth.log', mode='a')\r
+ logHandler = FileHandler('smo-o1-vth.log', mode='a')\r
logHandler.setLevel(logging.INFO)\r
app.logger.setLevel(logging.INFO)\r
app.logger.addHandler(logHandler)\r