blob: 02cc98f23b621d72bf4f0798bf90ba6aae6b1f6d [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
kurczews5dc69992018-11-20 10:33:30 +01009# MariaDB variables
10ENV VID_MYSQL_HOST="vid-mariadb-docker-instance" \
11 VID_MYSQL_PORT="3306" \
12 VID_MYSQL_DBNAME="vid_portal" \
13 VID_MYSQL_USER="vidadmin" \
14 VID_MYSQL_PASS="Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" \
15 VID_MYSQL_MAXCONNECTIONS="5"
Krzysztof Kwiecien7f2f18d2017-07-22 15:48:27 +020016
kurczews5dc69992018-11-20 10:33:30 +010017# General variables
18ENV VID_APP_DISPLAY_NAME="VID" \
19 VID_MYLOGIN_FEED_DIRECTORY="/tmp/MyLogins" \
20 VID_ROLE_ACCESS_CENTRALIZED="local" \
21 VID_DECRYPTION_KEY="AGLDdG4D04BKm2IxIWEr8o=" \
22 VID_ECOMP_PORTAL_INBOX_NAME="ECOMP-PORTAL-INBOX"
jimmydot3982f4f2017-05-07 14:58:24 -040023
24ENV ROOT_DIR /opt/app/vid
kurczews5dc69992018-11-20 10:33:30 +010025ENV CACHE_DIRECTORY="$ROOT_DIR/cache"
jimmydot3982f4f2017-05-07 14:58:24 -040026
kurczews5dc69992018-11-20 10:33:30 +010027# Keystore variables
28ENV VID_KEYSTORE_FILENAME="${ROOT_DIR}/etc/org.onap.vid.jks" \
29 VID_TRUSTSTORE_FILENAME="${ROOT_DIR}/etc/org.onap.vid.trust.jks" \
30 VID_KEYSTORE_PASSWORD="Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" \
31 VID_TRUSTSTORE_PASSWORD="OBF:1dx01j0e1hs01t981mis1dws156s1ojc1qjc1zsx1pw31qob1qr71pyj1zst1qhy1ojq156i1dua1mm21tb61hvi1j0g1du2" \
32 VID_TOMCAT_PATH="/usr/local/tomcat/conf/"
jimmydot3982f4f2017-05-07 14:58:24 -040033
kurczews5dc69992018-11-20 10:33:30 +010034# Logging variables
35ENV VID_LOG_DIR="${ROOT_DIR}/logs" \
36 VID_LOG_LEVEL="INFO" \
37 LOG4J_LOGLEVEL="INFO" \
38 LOG4J_APPENDER="rollingfile" \
39 LOG4J_LOGS_DIRECTORY="${ROOT_DIR}/logs"
jimmydot3982f4f2017-05-07 14:58:24 -040040
kurczews5dc69992018-11-20 10:33:30 +010041# UEB variables
42ENV VID_UEB_URL_LIST="ueb.api.simpledemo.onap.org" \
43 VID_UEB_CONSUMER_GROUP="VID" \
44 VID_UEB_APP_KEY="2Re7Pvdkgw5aeAUD" \
45 VID_UEB_APP_SECRET="S31PrbOzGgL4hg4owgtx47Da" \
46 VID_UEB_APP_MAILBOX_NAME="ECOMP-PORTAL-OUTBOX-90" \
47 VID_UEB_LISTENERS_ENABLE="false"
jimmydot3982f4f2017-05-07 14:58:24 -040048
kurczews5dc69992018-11-20 10:33:30 +010049# SDC variables
50ENV ASDC_CLIENT_REST_PROTOCOL="http" \
51 ASDC_CLIENT_REST_HOST="c2.vm1.sdc.simpledemo.onap.org" \
52 ASDC_CLIENT_REST_PORT="8080" \
53 ASDC_CLIENT_REST_AUTH="Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=" \
54 ASDC_CLIENT_MODEL_NAMESPACE="org.onap" \
55 ASDC_CLIENT_TYPE="REST"
jimmydot3982f4f2017-05-07 14:58:24 -040056
kurczews5dc69992018-11-20 10:33:30 +010057# AAI variables
58ENV VID_AAI_URL="https://aai.api.simpledemo.onap.org:8443" \
59 AAI_TRUSTSTORE_FILENAME="tomcat_keystore" \
60 AAI_KEYSTORE_FILENAME="tomcat_keystore" \
61 AAI_TRUSTSTORE_PASSWD_X="OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp" \
62 AAI_KEYSTORE_PASSWD_X="OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp" \
63 AAI_VID_PASSWD_X="OBF:1jm91i0v1jl9" \
64 AAI_VID_UID="VID" \
65 AAI_USE_CLIENT_CERT="false" \
66 AAI_VNF_PROV_STATUS="PREPROV,NVTPROV,PROV,CAPPED"
jimmydot3982f4f2017-05-07 14:58:24 -040067
kurczews5dc69992018-11-20 10:33:30 +010068# SO environment variables
69ENV VID_MSO_SERVER_URL="http://vm1.mso.simpledemo.onap.org:8080/onap/so/infra" \
70 MSO_DME2_SERVER_URL="http://localhost:8081" \
71 VID_MSO_PASS="OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz" \
72 MSO_DME2_CLIENT_TIMEOUT="10000" \
73 MSO_DME2_CLIENT_READ_TIMEOUT="10000" \
74 MSO_POLLING_INTERVAL_MSECS="10000" \
75 VID_MSO_USER="InfraPortalClient" \
76 MSO_DME2_ENABLED="false"
jimmydot3982f4f2017-05-07 14:58:24 -040077
kurczews5dc69992018-11-20 10:33:30 +010078# Portal variables
79ENV VID_CONTACT_US_LINK="https://todo_contact_us_link.com" \
80 VID_ECOMP_REDIRECT_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm" \
81 VID_ECOMP_REST_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi" \
82 VID_ECOMP_SHARED_CONTEXT_REST_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context"
jimmydot3982f4f2017-05-07 14:58:24 -040083
kurczews5dc69992018-11-20 10:33:30 +010084# Custom options
85ENV JAVA_OPTS="-Xmx1536m -Xms1536m"
86ENV CATALINA_OPTS="-Dvid.keystore.password=${VID_KEYSTORE_PASSWORD} -Dvid.keyalias=vid@vid.onap.org -Dvid.keystore.filename=${VID_KEYSTORE_FILENAME}"
Piotr Darosze2d292d2018-08-29 10:33:54 +020087
88ADD maven/config/org.onap.vid.jks ${VID_KEYSTORE_FILENAME}
Jakub Ziebab4aa71e2018-09-10 08:35:18 +020089ADD maven/config/org.onap.vid.trust.jks ${VID_TRUSTSTORE_FILENAME}
Piotr Darosze2d292d2018-08-29 10:33:54 +020090ADD maven/config/server.xml ${VID_TOMCAT_PATH}
jimmydot3982f4f2017-05-07 14:58:24 -040091ADD maven/scripts/*.sh /tmp/vid/
92ADD maven/artifacts/vid.war /tmp/vid/stage/
93
94RUN chmod +x /tmp/vid/localize.sh
95
kurczews72eaec32018-11-05 12:42:15 +010096CMD ["/tmp/vid/localize.sh"]