1 # ============LICENSE_START========================================================================
\r
2 # ONAP : tr-069-adapter
\r
3 # =================================================================================================
\r
4 # Copyright (C) 2020 CommScope Inc Intellectual Property.
\r
5 # =================================================================================================
\r
6 # This tr-069-adapter software file is distributed by CommScope Inc
\r
7 # under the Apache License, Version 2.0 (the "License");
\r
8 # you may not use this file except in compliance with the License.
\r
9 # You may obtain a copy of the License at
\r
11 # http://www.apache.org/licenses/LICENSE-2.0
\r
13 # This file is distributed on an "AS IS" BASIS,
\r
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 # See the License for the specific language governing permissions and
\r
16 # limitations under the License.
\r
17 # ===============LICENSE_END=======================================================================
\r
19 FROM openjdk:8-alpine
\r
23 ENV VES_REST_PORT=8383
\r
24 ENV CONFIG_NAME_SPACE=default
\r
25 ENV CONFIG_MAP_NAME=tr069adapter-ves-notifier
\r
26 ENV CONFIG_RELOAD_TIME=6000000
\r
27 ENV faultvesCollectorHost=localhost
\r
28 ENV faultvesCollectorPort=30235
\r
29 ENV pnfregvesCollectorHost=localhost
\r
30 ENV pnfregvesCollectorPort=30235
\r
31 ENV vendorName=CommScope
\r
32 ENV faultEventType=CommScope_RAN_Alarms
\r
33 ENV pnfRegEventType=CommScope_RAN_pnfRegistration
\r
34 ENV unitFamily=OneCell
\r
35 ENV unitType=BasebandController
\r
36 ENV faultEventSourcePrefix=OneCell
\r
37 ENV DB_SERVICE=tr069adapter-mariadb
\r
39 ENV DB_USERNAME=root
\r
40 ENV DB_PASSWORD=root
\r
41 ENV MAPPER_REST_HOST=tr069adapter-netconfig-mapper
\r
42 ENV MAPPER_REST_PORT=9999
\r
43 ENV CONFIG_MAP_ENABLE=true
\r
45 WORKDIR /opt/CSAdapter/
\r
47 ADD target/${JAR} ./lib/ves-agent.jar
\r
48 EXPOSE ${VES_REST_PORT}
\r
49 ENTRYPOINT ["java", "-jar", "./lib/ves-agent.jar"]
\r