diff options
author | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-26 11:49:07 -0400 |
---|---|---|
committer | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-26 13:47:31 -0400 |
commit | a9627f8c54b7e9d5712320621e8a0b748ad9baf4 (patch) | |
tree | 5d43d73ff9b0e47f74aed77be03bbf761e3b621b /deliveries/Dockerfile.portalapps | |
parent | 134cb7f97684487cf8a0245617c339a3fe2d54b0 (diff) |
Repair Portal defects; upgrade Docker build.
PORTAL-39 Remove MojoHaus Maven plug-in from pom file
PORTAL-38 VID tab is not showing portal for VID
PORTAL-37 Portal cannot resolve UEB host vm1-message-router;
use ueb.api.simpledemo.openecomp.org instead
PORTAL-36 Show Portal app version number in footer;
unpack war file instead of copying directory
PORTAL-35 update ECOMP Portal to ONAP logo on login page
PORTAL-34 Portal partners (Policy, VID) got 404 on landing page;
recognize process_csp as valid endpoint in Portal
PORTAL-30 Failed to communicate with the widget microservice;
add configuration properties with widget-ms host name and protocol.
Issue: PORTAL-30, PORTAL-34, PORTAL-35, PORTAL-36, PORTAL-37, PORTAL-38, PORTAL-39
Change-Id: I1e53e4985266f736ddad4ed49b287a23178ea3c3
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'deliveries/Dockerfile.portalapps')
-rw-r--r-- | deliveries/Dockerfile.portalapps | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.portalapps b/deliveries/Dockerfile.portalapps new file mode 100644 index 00000000..3e295e8f --- /dev/null +++ b/deliveries/Dockerfile.portalapps @@ -0,0 +1,54 @@ +# Dockerfile for image with ONAP applications: +# Portal app, Portal-SDK app, Portal-DBC app. + +FROM openjdk:8-jdk + +# Arguments are supplied by build.sh script +# the defaults below only support testing +ARG PORTAL_WAR=build/ecompportal-be-os.war +ARG FE_DIR=build/public +ARG SDK_WAR=build/epsdk-app-os.war +ARG DBC_WAR=build/dmaap-bc-app-os.war +ARG HTTP_PROXY +ARG HTTPS_PROXY + +# This is just a variable, never passed in +ARG TOMCATHOME=/opt/apache-tomcat-8.0.37 + +ENV http_proxy $HTTP_PROXY +ENV https_proxy $HTTPS_PROXY +RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \ + if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi + +# Install Tomcat; curl is already part of this image +WORKDIR /tmp +RUN curl -s -O https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin/apache-tomcat-8.0.37.tar.gz +RUN tar -xzf apache-tomcat-8.0.37.tar.gz +# Remove manager and sample apps +RUN rm -fr apache-tomcat-8.0.37/webapps/[a-z]* +RUN mv apache-tomcat-8.0.37 /opt + +WORKDIR ${TOMCATHOME}/webapps +RUN mkdir ECOMPPORTAL && mkdir ECOMPSDKAPP && mkdir ECOMPDBCAPP + +# Portal has many parts +COPY $PORTAL_WAR ECOMPPORTAL +RUN cd ECOMPPORTAL && unzip -q *.war && rm *.war +COPY ${FE_DIR} ECOMPPORTAL/public + +# SDK app has only a war +COPY $SDK_WAR ECOMPSDKAPP +RUN cd ECOMPSDKAPP && unzip -q *.war && rm *.war + +# DBC app has only a war +COPY $DBC_WAR ECOMPDBCAPP +RUN cd ECOMPDBCAPP && unzip -q *.war && rm *.war + +VOLUME ${TOMCATHOME}/logs + +# Define commonly used ENV variables +ENV PATH $PATH:$JAVA_HOME/bin:${TOMCATHOME}/bin +COPY configure-and-run.sh / + +# Define default command. +CMD ["/configure-and-run.sh"] |