Ittay Stern | 25fc55f | 2019-04-10 19:43:33 +0300 | [diff] [blame] | 1 | FROM tomcat:9.0-jre8-alpine |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 2 | |
| 3 | # add vim and uncomment alias to speedup troubleshooting purpose |
| 4 | RUN apk update && apk add openjdk8 vim net-tools |
| 5 | |
Wojciech Sliwka | b461e34 | 2019-04-08 15:12:40 +0200 | [diff] [blame] | 6 | RUN adduser --disabled-password onap onap |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 7 | |
| 8 | # MariaDB variables |
| 9 | ENV VID_MYSQL_HOST="vid-mariadb-docker-instance" \ |
| 10 | VID_MYSQL_PORT="3306" \ |
| 11 | VID_MYSQL_DBNAME="vid_portal" \ |
| 12 | VID_MYSQL_USER="vidadmin" \ |
| 13 | VID_MYSQL_PASS="Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" \ |
| 14 | VID_MYSQL_MAXCONNECTIONS="5" |
| 15 | |
| 16 | # General variables |
| 17 | ENV VID_APP_DISPLAY_NAME="VID" \ |
| 18 | VID_MYLOGIN_FEED_DIRECTORY="/tmp/MyLogins" \ |
| 19 | VID_ROLE_ACCESS_CENTRALIZED="local" \ |
| 20 | VID_DECRYPTION_KEY="AGLDdG4D04BKm2IxIWEr8o=" \ |
| 21 | VID_ECOMP_PORTAL_INBOX_NAME="ECOMP-PORTAL-INBOX" |
| 22 | |
| 23 | ENV ROOT_DIR /opt/app/vid |
| 24 | ENV CACHE_DIRECTORY="$ROOT_DIR/cache" |
| 25 | |
| 26 | # Keystore variables |
| 27 | ENV VID_KEYSTORE_FILENAME="${ROOT_DIR}/etc/org.onap.vid.jks" \ |
| 28 | VID_TRUSTSTORE_FILENAME="${ROOT_DIR}/etc/org.onap.vid.trust.jks" \ |
Ittay Stern | 37ad0cc | 2019-03-15 06:18:38 +0200 | [diff] [blame] | 29 | VID_KEYSTORE_PASSWORD="ry1RLC\(\?M6\?2fQ\]1a2\)2y\{P:" \ |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 30 | VID_TRUSTSTORE_PASSWORD="OBF:1dx01j0e1hs01t981mis1dws156s1ojc1qjc1zsx1pw31qob1qr71pyj1zst1qhy1ojq156i1dua1mm21tb61hvi1j0g1du2" \ |
| 31 | VID_TOMCAT_PATH="/usr/local/tomcat/conf/" |
| 32 | |
| 33 | # Logging variables |
| 34 | ENV VID_LOG_DIR="${ROOT_DIR}/logs" \ |
| 35 | VID_LOG_LEVEL="INFO" \ |
| 36 | LOG4J_LOGLEVEL="INFO" \ |
| 37 | LOG4J_APPENDER="rollingfile" \ |
| 38 | LOG4J_LOGS_DIRECTORY="${ROOT_DIR}/logs" |
| 39 | |
| 40 | # UEB variables |
| 41 | ENV VID_UEB_URL_LIST="ueb.api.simpledemo.onap.org" \ |
| 42 | VID_UEB_CONSUMER_GROUP="VID" \ |
| 43 | VID_UEB_APP_KEY="2Re7Pvdkgw5aeAUD" \ |
| 44 | VID_UEB_APP_SECRET="S31PrbOzGgL4hg4owgtx47Da" \ |
| 45 | VID_UEB_APP_MAILBOX_NAME="ECOMP-PORTAL-OUTBOX-90" \ |
| 46 | VID_UEB_LISTENERS_ENABLE="false" |
| 47 | |
| 48 | # SDC variables |
| 49 | ENV ASDC_CLIENT_REST_PROTOCOL="http" \ |
| 50 | ASDC_CLIENT_REST_HOST="c2.vm1.sdc.simpledemo.onap.org" \ |
| 51 | ASDC_CLIENT_REST_PORT="8080" \ |
| 52 | ASDC_CLIENT_REST_AUTH="Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=" \ |
| 53 | ASDC_CLIENT_MODEL_NAMESPACE="org.onap" \ |
| 54 | ASDC_CLIENT_TYPE="REST" |
| 55 | |
| 56 | # AAI variables |
| 57 | ENV VID_AAI_URL="https://aai.api.simpledemo.onap.org:8443" \ |
| 58 | AAI_TRUSTSTORE_FILENAME="tomcat_keystore" \ |
| 59 | AAI_KEYSTORE_FILENAME="tomcat_keystore" \ |
| 60 | AAI_TRUSTSTORE_PASSWD_X="OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp" \ |
| 61 | AAI_KEYSTORE_PASSWD_X="OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp" \ |
| 62 | AAI_VID_PASSWD_X="OBF:1jm91i0v1jl9" \ |
| 63 | AAI_VID_UID="VID" \ |
| 64 | AAI_USE_CLIENT_CERT="false" \ |
| 65 | AAI_VNF_PROV_STATUS="PREPROV,NVTPROV,PROV,CAPPED" |
| 66 | |
| 67 | # SO environment variables |
| 68 | ENV VID_MSO_SERVER_URL="http://vm1.mso.simpledemo.onap.org:8080/onap/so/infra" \ |
| 69 | MSO_DME2_SERVER_URL="http://localhost:8081" \ |
| 70 | VID_MSO_PASS="OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz" \ |
| 71 | MSO_DME2_CLIENT_TIMEOUT="10000" \ |
| 72 | MSO_DME2_CLIENT_READ_TIMEOUT="10000" \ |
| 73 | MSO_POLLING_INTERVAL_MSECS="10000" \ |
| 74 | VID_MSO_USER="InfraPortalClient" \ |
| 75 | MSO_DME2_ENABLED="false" |
| 76 | |
| 77 | # Portal variables |
| 78 | ENV VID_CONTACT_US_LINK="https://todo_contact_us_link.com" \ |
| 79 | VID_ECOMP_REDIRECT_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm" \ |
| 80 | VID_ECOMP_REST_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi" \ |
| 81 | VID_ECOMP_SHARED_CONTEXT_REST_URL="http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context" |
| 82 | |
| 83 | # Custom options |
| 84 | ENV JAVA_OPTS="-Xmx1536m -Xms1536m" |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 85 | |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 86 | ADD maven/config/server.xml ${VID_TOMCAT_PATH} |
| 87 | ADD maven/scripts/*.sh /tmp/vid/ |
| 88 | ADD maven/artifacts/vid.war /tmp/vid/stage/ |
| 89 | |
Bartosz Gardziejewski | 7a3e259 | 2019-08-08 15:17:32 +0200 | [diff] [blame] | 90 | RUN chown onap:onap /tmp/vid /usr/local/tomcat -R |
Ittay Stern | 9514224 | 2019-03-13 12:03:07 +0200 | [diff] [blame] | 91 | RUN chmod +x /tmp/vid/localize.sh |
Wojciech Sliwka | b461e34 | 2019-04-08 15:12:40 +0200 | [diff] [blame] | 92 | USER onap |
| 93 | CMD ["/tmp/vid/localize.sh"] |