Initial source code
[oam/tr069-adapter.git] / mapper / Dockerfile
diff --git a/mapper/Dockerfile b/mapper/Dockerfile
new file mode 100644 (file)
index 0000000..117d847
--- /dev/null
@@ -0,0 +1,45 @@
+# ============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 SBI_REST_HOST=tr069adapter-acs\r
+ENV SBI_REST_PORT=9977\r
+ENV CONFIG_DB_REST_HOST=tr069adapter-acs-initialpnpdb\r
+ENV CONFIG_DB_REST_PORT=9000\r
+ENV MAPPER_REST_PORT=9999\r
+ENV REQUEST_TIMEOUT=300\r
+ENV preConfigureOnPNP=true\r
+ENV ALARM_MO_REGEX=(.)*.FaultMgmt.ExpeditedEvent.(.)*\r
+ENV NBI_REST_HOST=tr069adapter-netconf-server\r
+ENV NBI_REST_PORT=8181\r
+ENV VES_REST_HOST=tr069adapter-ves-notifier\r
+ENV VES_REST_PORT=8383\r
+ENV netConfServerPort=17830\r
+ENV netConfServerIP=localhost\r
+\r
+WORKDIR /opt/CSAdapter/\r
+\r
+ADD target/${JAR} ./lib/mapper.jar\r
+ADD ./mapper-schema ./mapper-schema\r
+ADD ./error-code-mapping.json ./error-code-mapping.json\r
+\r
+\r
+ENTRYPOINT ["java", "-jar", "./lib/mapper.jar"]\r