adding the SNAPSHOT in pom
[oam/tr069-adapter.git] / netconf-server / Dockerfile
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
10 #\r
11 # http://www.apache.org/licenses/LICENSE-2.0\r
12 #\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
18 \r
19 FROM openjdk:8-alpine\r
20 \r
21 ARG JAR\r
22 \r
23 ENV NETCONF_REST_PORT=8181\r
24 ENV MAPPER_REST_PORT=9999\r
25 ENV NETCONFSRVS_START_PORT=17830\r
26 ENV NUM_SERVERS=200\r
27 ENV MAPPER_REST_HOST=tr069adapter-netconfig-mapper\r
28 ENV DB_SERVICE=tr069adapter-mariadb\r
29 ENV DB_NAME=dmsdb\r
30 ENV DB_USERNAME=root\r
31 ENV DB_PASSWORD=root\r
32 ENV netConfServerIP=localhost\r
33 ENV VES_REST_HOST=tr069adapter-ves-notifier\r
34 ENV VES_REST_PORT=8383\r
35 \r
36 WORKDIR /opt/CSAdapter/\r
37 \r
38 ADD ./schemas ./schemas\r
39 \r
40 ADD ./docker-entrypoint.sh .\r
41 \r
42 RUN dos2unix docker-entrypoint.sh\r
43 \r
44 RUN chmod 777 docker-entrypoint.sh\r
45 \r
46 \r
47 ADD target/${JAR} ./lib/netconf-server-1.0.0.jar\r
48 \r
49 EXPOSE ${VES_PORT}\r
50 ENTRYPOINT ["./docker-entrypoint.sh"]\r