blob: 4b04e22cf5ab9ca9c7d477e2f30c28481ea9dcd9 [file] [log] [blame]
jimmydot3982f4f2017-05-07 14:58:24 -04001FROM tomcat:8.0-jre8
kurczews72eaec32018-11-05 12:42:15 +01002
Krzysztof Kwiecien7f2f18d2017-07-22 15:48:27 +02003# add vim and uncomment alias to speedup troubleshooting purpose
jimmydot3982f4f2017-05-07 14:58:24 -04004RUN apt-get update && apt-get install -y \
Piotr Darosze2d292d2018-08-29 10:33:54 +02005 openjdk-8-jdk vim net-tools
Krzysztof Kwiecien7f2f18d2017-07-22 15:48:27 +02006
kurczews72eaec32018-11-05 12:42:15 +01007COPY conf.d/ /etc/onap/vid/conf.d/
8
Krzysztof Kwiecien7f2f18d2017-07-22 15:48:27 +02009RUN sed -i 's/# alias/alias/g' /root/.bashrc
10
kurczews72eaec32018-11-05 12:42:15 +010011ENV JAVA_OPTS="-Xmx1536m -Xms1536m -Dlogback.configurationFile=/etc/onap/vid/conf.d/logback.xml"
jimmydot3982f4f2017-05-07 14:58:24 -040012
13ENV ROOT_DIR /opt/app/vid
14
15ENV ASDC_CLIENT_TYPE REST
Sonsino, Ofir (os0695)50726b02018-04-10 17:58:37 +030016ENV ASDC_CLIENT_REST_HOST c2.vm1.sdc.simpledemo.onap.org
jimmydot3982f4f2017-05-07 14:58:24 -040017#old creds 1/9/2017 ENV ASDC_CLIENT_REST_AUTH Basic dmlkOnZpZG9z
18ENV ASDC_CLIENT_REST_AUTH Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
19ENV ASDC_CLIENT_REST_PROTOCOL http
20ENV ASDC_CLIENT_REST_PORT 8080
Sonsino, Ofir (os0695)9b28da02018-04-17 09:42:50 +030021ENV ASDC_CLIENT_MODEL_NAMESPACE org.onap
jimmydot3982f4f2017-05-07 14:58:24 -040022
23ENV CACHE_DIRECTORY $ROOT_DIR/cache
24
25ENV LOG4J_LOGLEVEL INFO
26ENV LOG4J_APPENDER rollingfile
27ENV LOG4J_LOGS_DIRECTORY ${ROOT_DIR}/logs
28
Sonsino, Ofir (os0695)50726b02018-04-10 17:58:37 +030029ENV VID_AAI_HOST aai.api.simpledemo.onap.org
jimmydot3982f4f2017-05-07 14:58:24 -040030ENV VID_AAI_PORT 8443
31ENV VID_APP_DISPLAY_NAME VID
Sonsino, Ofir (os0695)50726b02018-04-10 17:58:37 +030032ENV VID_ECOMP_SHARED_CONTEXT_REST_URL https://portal.api.simpledemo.onap.org:8080/onapportal/context
Wojciech Sliwka66962852018-10-05 09:20:32 +020033ENV VID_MSO_SERVER_URL http://vm1.mso.simpledemo.onap.org:8080/onap/so/infra
jimmydot3982f4f2017-05-07 14:58:24 -040034ENV VID_MYLOGIN_FEED_DIRECTORY /tmp/MyLogins
jimmydot3982f4f2017-05-07 14:58:24 -040035ENV VID_MSO_USER InfraPortalClient
36ENV VID_MSO_PASS OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
37ENV MSO_DME2_CLIENT_TIMEOUT 10000
38ENV MSO_DME2_CLIENT_READ_TIMEOUT 10000
39ENV MSO_DME2_SERVER_URL http://localhost:8081
40ENV MSO_DME2_ENABLED false
41ENV MSO_POLLING_INTERVAL_MSECS 10000
42ENV AAI_TRUSTSTORE_FILENAME tomcat_keystore
43ENV AAI_TRUSTSTORE_PASSWD_X OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
44ENV AAI_KEYSTORE_FILENAME tomcat_keystore
45ENV AAI_KEYSTORE_PASSWD_X OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
46ENV AAI_VID_UID VID
47ENV AAI_VID_PASSWD_X OBF:1jm91i0v1jl9
48ENV AAI_USE_CLIENT_CERT false
49ENV AAI_VNF_PROV_STATUS PREPROV,NVTPROV,PROV,CAPPED
Sonsino, Ofir (os0695)50726b02018-04-10 17:58:37 +030050ENV VID_ECOMP_REDIRECT_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
51ENV VID_ECOMP_REST_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi
52ENV VID_ECOMP_SHARED_CONTEXT_REST_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context
Sonsino, Ofir (os0695)975779b2018-10-18 11:07:22 +030053ENV VID_ROLE_ACCESS_CENTRALIZED local
jimmydot3982f4f2017-05-07 14:58:24 -040054ENV VID_CONTACT_US_LINK https://todo_contact_us_link.com
55
56ENV VID_DECRYPTION_KEY AGLDdG4D04BKm2IxIWEr8o=
Piotr Darosze2d292d2018-08-29 10:33:54 +020057ENV VID_UEB_URL_LIST ueb.api.simpledemo.onap.org
jimmydot3982f4f2017-05-07 14:58:24 -040058ENV VID_UEB_CONSUMER_GROUP VID
59ENV VID_ECOMP_PORTAL_INBOX_NAME ECOMP-PORTAL-INBOX
60ENV VID_UEB_APP_KEY 2Re7Pvdkgw5aeAUD
61ENV VID_UEB_APP_SECRET S31PrbOzGgL4hg4owgtx47Da
62ENV VID_UEB_APP_MAILBOX_NAME ECOMP-PORTAL-OUTBOX-90
63ENV VID_UEB_LISTENERS_ENABLE false
64
65ENV VID_LOG_DIR ${ROOT_DIR}/logs
66ENV VID_LOG_LEVEL INFO
67
68ENV VID_MYSQL_HOST vid-mariadb-docker-instance
69ENV VID_MYSQL_PORT 3306
70ENV VID_MYSQL_DBNAME vid_portal
71ENV VID_MYSQL_USER vidadmin
72ENV VID_MYSQL_MAXCONNECTIONS 5
73ENV VID_MYSQL_PASS Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
74
Piotr Darosze2d292d2018-08-29 10:33:54 +020075ENV VID_KEYSTORE_FILENAME ${ROOT_DIR}/etc/org.onap.vid.jks
76ENV VID_KEYSTORE_PASSWORD Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
Jakub Ziebab4aa71e2018-09-10 08:35:18 +020077ENV VID_TRUSTSTORE_FILENAME ${ROOT_DIR}/etc/org.onap.vid.trust.jks
78ENV VID_TRUSTSTORE_PASSWORD OBF:1dx01j0e1hs01t981mis1dws156s1ojc1qjc1zsx1pw31qob1qr71pyj1zst1qhy1ojq156i1dua1mm21tb61hvi1j0g1du2
Piotr Darosze2d292d2018-08-29 10:33:54 +020079ENV VID_TOMCAT_PATH /usr/local/tomcat/conf/
80ENV CATALINA_OPTS "-Dvid.keystore.password=${VID_KEYSTORE_PASSWORD} -Dvid.keyalias=vid@vid.onap.org -Dvid.keystore.filename=${VID_KEYSTORE_FILENAME}"
81
82ADD maven/config/org.onap.vid.jks ${VID_KEYSTORE_FILENAME}
Jakub Ziebab4aa71e2018-09-10 08:35:18 +020083ADD maven/config/org.onap.vid.trust.jks ${VID_TRUSTSTORE_FILENAME}
Piotr Darosze2d292d2018-08-29 10:33:54 +020084ADD maven/config/server.xml ${VID_TOMCAT_PATH}
85
jimmydot3982f4f2017-05-07 14:58:24 -040086ADD maven/scripts/*.sh /tmp/vid/
87ADD maven/artifacts/vid.war /tmp/vid/stage/
88
89RUN chmod +x /tmp/vid/localize.sh
90
kurczews72eaec32018-11-05 12:42:15 +010091CMD ["/tmp/vid/localize.sh"]