Skip to content

Commit

Permalink
fix share in a very ugly way
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Oct 14, 2024
1 parent c2d5a54 commit 019ca41
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions share/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ ENV DISTDIR="/tmp/distribution"

RUN yum install -y unzip
RUN unzip /tmp/*.zip -d ${DISTDIR}
RUN unzip ${DISTDIR}/alfresco*/web-server/webapps/share.war -d ${CATALINA_HOME}/webapps/share/
RUN cp -r ${DISTDIR}/alfresco*/amps/ /tmp/amps/
RUN unzip ${DISTDIR}/alfresco*/web-server/webapps/share.war -d ${CATALINA_HOME}/webapps/share/ || \
unzip ${DISTDIR}/web-server/webapps/share.war -d ${CATALINA_HOME}/webapps/share
RUN cp -r ${DISTDIR}/alfresco*/amps/ /tmp/amps/ || \
cp -r ${DISTDIR}/amps/ /tmp/amps/
RUN cp /tmp/share-config-custom.xml ${CATALINA_HOME}/shared/classes/alfresco/web-extension
RUN cp ${DISTDIR}/alfresco*/web-server/conf/Catalina/localhost/share.xml ${CATALINA_HOME}/conf/Catalina/localhost
RUN cp ${DISTDIR}/alfresco*/web-server/conf/Catalina/localhost/share.xml ${CATALINA_HOME}/conf/Catalina/localhost || \
cp ${DISTDIR}/web-server/conf/Catalina/localhost/share.xml ${CATALINA_HOME}/conf/Catalina/localhost
RUN sed -i 's|../modules/share|modules/share|' ${CATALINA_HOME}/conf/Catalina/localhost/share.xml
RUN sed -i "s/shared.loader=/shared.loader=\${catalina.base}\/shared\/classes/" ${CATALINA_HOME}/conf/catalina.properties
RUN chmod +x ${CATALINA_HOME}/shared/classes/alfresco/entrypoint.sh

RUN java -jar ${DISTDIR}/alfresco*/bin/alfresco-mmt.jar install \
/tmp/amps/ ${CATALINA_HOME}/webapps/share -directory -nobackup -force
/tmp/amps/ ${CATALINA_HOME}/webapps/share -directory -nobackup -force || \
java -jar ${DISTDIR}/bin/alfresco-mmt.jar install \
/tmp/amps/ ${CATALINA_HOME}/webapps/share -directory -nobackup -force

FROM tomcat_base AS share-rhlike
ARG ALFRESCO_SHARE_USER_ID
Expand Down

0 comments on commit 019ca41

Please sign in to comment.