moved dockerfiles to docker dir and updated jenkins file to reflect that
authorChen, Jackie <jv246a@att.com>
Thu, 21 May 2020 16:53:27 +0000 (12:53 -0400)
committerLusheng Ji <lji@research.att.com>
Fri, 22 May 2020 01:13:08 +0000 (01:13 +0000)
renamed o1-vth directory to smo-o1-vth

Change-Id: Ie251aae3777d00940e8f64f4ceb977aaa014364b
Signed-off-by: Chen, Jackie <jv246a@att.com>
19 files changed:
a1-mediator-vth/Jenkinsfile
a1-mediator-vth/docker/Dockerfile [moved from a1-mediator-vth/Dockerfile with 76% similarity]
a1-mediator-vth/docker/container-tag.yaml [new file with mode: 0644]
dmaap-vth/Jenkinsfile
dmaap-vth/docker/Dockerfile [moved from dmaap-vth/Dockerfile with 100% similarity]
dmaap-vth/docker/container-tag.yaml [new file with mode: 0644]
smo-o1-vth/Doc/o1-documentation.docx [moved from o1-vth/Doc/o1-documentation.docx with 100% similarity]
smo-o1-vth/Jenkinsfile [moved from o1-vth/Jenkinsfile with 96% similarity]
smo-o1-vth/config.ini [moved from o1-vth/config.ini with 100% similarity]
smo-o1-vth/docker/Dockerfile [moved from o1-vth/Dockerfile with 100% similarity]
smo-o1-vth/docker/container-tag.yaml [new file with mode: 0644]
smo-o1-vth/helm/o1-vth/.helmignore [moved from o1-vth/helm/o1-vth/.helmignore with 100% similarity]
smo-o1-vth/helm/o1-vth/Chart.yaml [moved from o1-vth/helm/o1-vth/Chart.yaml with 82% similarity]
smo-o1-vth/helm/o1-vth/templates/deployment.yaml [moved from o1-vth/helm/o1-vth/templates/deployment.yaml with 100% similarity]
smo-o1-vth/helm/o1-vth/templates/secret.yaml [moved from o1-vth/helm/o1-vth/templates/secret.yaml with 100% similarity]
smo-o1-vth/helm/o1-vth/templates/service.yaml [moved from o1-vth/helm/o1-vth/templates/service.yaml with 100% similarity]
smo-o1-vth/helm/o1-vth/values.yaml [moved from o1-vth/helm/o1-vth/values.yaml with 84% similarity]
smo-o1-vth/o1_vth.py [moved from o1-vth/o1_vth.py with 95% similarity]
smo-o1-vth/pip-requirements.txt [moved from o1-vth/pip-requirements.txt with 100% similarity]

index a58148c..7b20420 100644 (file)
@@ -64,7 +64,7 @@ node("docker"){
                        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
similarity index 76%
rename from a1-mediator-vth/Dockerfile
rename to a1-mediator-vth/docker/Dockerfile
index e708483..dca0186 100644 (file)
@@ -1,13 +1,13 @@
-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"]
diff --git a/a1-mediator-vth/docker/container-tag.yaml b/a1-mediator-vth/docker/container-tag.yaml
new file mode 100644 (file)
index 0000000..ee078db
--- /dev/null
@@ -0,0 +1,15 @@
+---
+#   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
index dfb3067..31299d2 100644 (file)
@@ -64,7 +64,7 @@ node("docker"){
                        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
@@ -98,7 +98,7 @@ node("docker"){
 \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
diff --git a/dmaap-vth/docker/container-tag.yaml b/dmaap-vth/docker/container-tag.yaml
new file mode 100644 (file)
index 0000000..ee078db
--- /dev/null
@@ -0,0 +1,15 @@
+---
+#   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
similarity index 96%
rename from o1-vth/Jenkinsfile
rename to smo-o1-vth/Jenkinsfile
index 8da4b07..b7eca87 100644 (file)
@@ -65,7 +65,7 @@ node("docker"){
 \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
@@ -100,7 +100,7 @@ node("docker"){
 \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
similarity index 100%
rename from o1-vth/config.ini
rename to smo-o1-vth/config.ini
diff --git a/smo-o1-vth/docker/container-tag.yaml b/smo-o1-vth/docker/container-tag.yaml
new file mode 100644 (file)
index 0000000..ee078db
--- /dev/null
@@ -0,0 +1,15 @@
+---
+#   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
similarity index 82%
rename from o1-vth/helm/o1-vth/Chart.yaml
rename to smo-o1-vth/helm/o1-vth/Chart.yaml
index 35abef6..5fb9d09 100644 (file)
@@ -1,5 +1,5 @@
 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
similarity index 84%
rename from o1-vth/helm/o1-vth/values.yaml
rename to smo-o1-vth/helm/o1-vth/values.yaml
index 66a2c9c..012a940 100644 (file)
@@ -1,7 +1,7 @@
-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
similarity index 95%
rename from o1-vth/o1_vth.py
rename to smo-o1-vth/o1_vth.py
index 3732d75..1cc63f7 100644 (file)
@@ -12,7 +12,7 @@
 #   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
@@ -136,7 +136,7 @@ def getHealth():
     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