Initial source code
[oam/tr069-adapter.git] / ves-agent / Dockerfile
diff --git a/ves-agent/Dockerfile b/ves-agent/Dockerfile
new file mode 100644 (file)
index 0000000..c92a4c4
--- /dev/null
@@ -0,0 +1,42 @@
+# ============LICENSE_START========================================================================\r
+# ONAP : tr-069-adapter\r
+# =================================================================================================\r
+# Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+# =================================================================================================\r
+# This tr-069-adapter software file is distributed by CommScope Inc\r
+# under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# This file is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# ===============LICENSE_END=======================================================================\r
+\r
+FROM openjdk:8-alpine\r
+\r
+ARG JAR\r
+\r
+ENV VES_REST_PORT=8383\r
+ENV CONFIG_NAME_SPACE=default\r
+ENV CONFIG_MAP_NAME=tr069adapter-ves-notifier\r
+ENV CONFIG_RELOAD_TIME=6000000\r
+ENV faultvesCollectorHost=localhost\r
+ENV faultvesCollectorPort=30235\r
+ENV pnfregvesCollectorHost=localhost\r
+ENV pnfregvesCollectorPort=30235\r
+ENV vendorName=CommScope\r
+ENV faultEventType=CommScope_RAN_Alarms\r
+ENV pnfRegEventType=CommScope_RAN_pnfRegistration\r
+ENV unitFamily=OneCell\r
+ENV unitType=BasebandController\r
+ENV faultEventSourcePrefix=OneCell\r
+\r
+WORKDIR /opt/CSAdapter/\r
+\r
+ADD target/${JAR} ./lib/ves-agent.jar\r
+EXPOSE ${VES_REST_PORT}\r
+ENTRYPOINT ["java", "-jar", "./lib/ves-agent.jar"]\r