jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 1 | FROM tomcat:8.0-jre8
|
Krzysztof Kwiecien | 7f2f18d | 2017-07-22 15:48:27 +0200 | [diff] [blame] | 2 | # add vim and uncomment alias to speedup troubleshooting purpose
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 3 | RUN apt-get update && apt-get install -y \
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 4 | openjdk-8-jdk vim net-tools
|
Krzysztof Kwiecien | 7f2f18d | 2017-07-22 15:48:27 +0200 | [diff] [blame] | 5 |
|
| 6 | RUN sed -i 's/# alias/alias/g' /root/.bashrc
|
| 7 |
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 8 | RUN mkdir -p ${ROOT_DIR}/etc
|
| 9 |
|
Sonsino, Ofir (os0695) | 1f04e8e | 2018-04-17 11:21:39 +0300 | [diff] [blame] | 10 | ENV JAVA_OPTS="-Xmx1536m -Xms1536m"
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 11 |
|
| 12 | ENV ROOT_DIR /opt/app/vid
|
| 13 |
|
| 14 | ENV ASDC_CLIENT_TYPE REST
|
Sonsino, Ofir (os0695) | 50726b0 | 2018-04-10 17:58:37 +0300 | [diff] [blame] | 15 | ENV ASDC_CLIENT_REST_HOST c2.vm1.sdc.simpledemo.onap.org
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 16 | #old creds 1/9/2017 ENV ASDC_CLIENT_REST_AUTH Basic dmlkOnZpZG9z
|
| 17 | ENV ASDC_CLIENT_REST_AUTH Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
|
| 18 | ENV ASDC_CLIENT_REST_PROTOCOL http
|
| 19 | ENV ASDC_CLIENT_REST_PORT 8080
|
Sonsino, Ofir (os0695) | 9b28da0 | 2018-04-17 09:42:50 +0300 | [diff] [blame] | 20 | ENV ASDC_CLIENT_MODEL_NAMESPACE org.onap
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 21 |
|
| 22 | ENV CACHE_DIRECTORY $ROOT_DIR/cache
|
| 23 |
|
| 24 | ENV LOG4J_LOGLEVEL INFO
|
| 25 | ENV LOG4J_APPENDER rollingfile
|
| 26 | ENV LOG4J_LOGS_DIRECTORY ${ROOT_DIR}/logs
|
| 27 |
|
Sonsino, Ofir (os0695) | 50726b0 | 2018-04-10 17:58:37 +0300 | [diff] [blame] | 28 | ENV VID_AAI_HOST aai.api.simpledemo.onap.org
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 29 | ENV VID_AAI_PORT 8443
|
| 30 | ENV VID_APP_DISPLAY_NAME VID
|
Sonsino, Ofir (os0695) | 50726b0 | 2018-04-10 17:58:37 +0300 | [diff] [blame] | 31 | ENV VID_ECOMP_SHARED_CONTEXT_REST_URL https://portal.api.simpledemo.onap.org:8080/onapportal/context
|
| 32 | ENV VID_MSO_SERVER_URL http://vm1.mso.simpledemo.onap.org:8080
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 33 | ENV VID_MYLOGIN_FEED_DIRECTORY /tmp/MyLogins
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 34 | ENV VID_MSO_USER InfraPortalClient
|
| 35 | ENV VID_MSO_PASS OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
|
| 36 | ENV MSO_DME2_CLIENT_TIMEOUT 10000
|
| 37 | ENV MSO_DME2_CLIENT_READ_TIMEOUT 10000
|
| 38 | ENV MSO_DME2_SERVER_URL http://localhost:8081
|
| 39 | ENV MSO_DME2_ENABLED false
|
| 40 | ENV MSO_POLLING_INTERVAL_MSECS 10000
|
| 41 | ENV AAI_TRUSTSTORE_FILENAME tomcat_keystore
|
| 42 | ENV AAI_TRUSTSTORE_PASSWD_X OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
|
| 43 | ENV AAI_KEYSTORE_FILENAME tomcat_keystore
|
| 44 | ENV AAI_KEYSTORE_PASSWD_X OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
|
| 45 | ENV AAI_VID_UID VID
|
| 46 | ENV AAI_VID_PASSWD_X OBF:1jm91i0v1jl9
|
| 47 | ENV AAI_USE_CLIENT_CERT false
|
| 48 | ENV AAI_VNF_PROV_STATUS PREPROV,NVTPROV,PROV,CAPPED
|
Sonsino, Ofir (os0695) | 50726b0 | 2018-04-10 17:58:37 +0300 | [diff] [blame] | 49 | ENV VID_ECOMP_REDIRECT_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
|
| 50 | ENV VID_ECOMP_REST_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi
|
| 51 | ENV VID_ECOMP_SHARED_CONTEXT_REST_URL http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 52 | ENV VID_CONTACT_US_LINK https://todo_contact_us_link.com
|
| 53 |
|
| 54 | ENV VID_DECRYPTION_KEY AGLDdG4D04BKm2IxIWEr8o=
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 55 | ENV VID_UEB_URL_LIST ueb.api.simpledemo.onap.org
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 56 | ENV VID_UEB_CONSUMER_GROUP VID
|
| 57 | ENV VID_ECOMP_PORTAL_INBOX_NAME ECOMP-PORTAL-INBOX
|
| 58 | ENV VID_UEB_APP_KEY 2Re7Pvdkgw5aeAUD
|
| 59 | ENV VID_UEB_APP_SECRET S31PrbOzGgL4hg4owgtx47Da
|
| 60 | ENV VID_UEB_APP_MAILBOX_NAME ECOMP-PORTAL-OUTBOX-90
|
| 61 | ENV VID_UEB_LISTENERS_ENABLE false
|
| 62 |
|
| 63 | ENV VID_LOG_DIR ${ROOT_DIR}/logs
|
| 64 | ENV VID_LOG_LEVEL INFO
|
| 65 |
|
| 66 | ENV VID_MYSQL_HOST vid-mariadb-docker-instance
|
| 67 | ENV VID_MYSQL_PORT 3306
|
| 68 | ENV VID_MYSQL_DBNAME vid_portal
|
| 69 | ENV VID_MYSQL_USER vidadmin
|
| 70 | ENV VID_MYSQL_MAXCONNECTIONS 5
|
| 71 | ENV VID_MYSQL_PASS Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
|
| 72 |
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 73 | ENV VID_KEYSTORE_FILENAME ${ROOT_DIR}/etc/org.onap.vid.jks
|
| 74 | ENV VID_KEYSTORE_PASSWORD Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
|
Jakub Zieba | b4aa71e | 2018-09-10 08:35:18 +0200 | [diff] [blame] | 75 | ENV VID_TRUSTSTORE_FILENAME ${ROOT_DIR}/etc/org.onap.vid.trust.jks
|
| 76 | ENV VID_TRUSTSTORE_PASSWORD OBF:1dx01j0e1hs01t981mis1dws156s1ojc1qjc1zsx1pw31qob1qr71pyj1zst1qhy1ojq156i1dua1mm21tb61hvi1j0g1du2
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 77 | ENV VID_TOMCAT_PATH /usr/local/tomcat/conf/
|
| 78 | ENV CATALINA_OPTS "-Dvid.keystore.password=${VID_KEYSTORE_PASSWORD} -Dvid.keyalias=vid@vid.onap.org -Dvid.keystore.filename=${VID_KEYSTORE_FILENAME}"
|
| 79 |
|
| 80 | ADD maven/config/org.onap.vid.jks ${VID_KEYSTORE_FILENAME}
|
Jakub Zieba | b4aa71e | 2018-09-10 08:35:18 +0200 | [diff] [blame] | 81 | ADD maven/config/org.onap.vid.trust.jks ${VID_TRUSTSTORE_FILENAME}
|
Piotr Darosz | e2d292d | 2018-08-29 10:33:54 +0200 | [diff] [blame] | 82 | ADD maven/config/server.xml ${VID_TOMCAT_PATH}
|
| 83 |
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 84 | ADD maven/scripts/*.sh /tmp/vid/
|
| 85 | ADD maven/artifacts/vid.war /tmp/vid/stage/
|
| 86 |
|
| 87 | RUN chmod +x /tmp/vid/localize.sh
|
| 88 |
|
| 89 | CMD ["/tmp/vid/localize.sh"]
|