Skip to content

Commit

Permalink
OPSEXP-2718: Add instructions to deploy extra jars to tomcat installa…
Browse files Browse the repository at this point in the history
…tion (#13)
  • Loading branch information
alxgomz authored Jul 29, 2024
1 parent 333e6f2 commit 5cffa63
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repository/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ RUN mkdir -m 750 -p ${CATALINA_HOME}/shared/classes/alfresco/extension/keystore/
RUN mkdir -m 770 ${CATALINA_HOME}/alf_data/
RUN unzip ${DISTDIR}/web-server/webapps/alfresco.war -d ${CATALINA_HOME}/webapps/alfresco/
RUN cp -a ${DISTDIR}/web-server/conf/* ${CATALINA_HOME}/conf/ && rm -f ${CATALINA_HOME}/conf/Catalina/localhost/share.xml
RUN cp -a ${DISTDIR}/web-server/lib/* ${CATALINA_HOME}/lib/
RUN cp -a ${DISTDIR}/licenses ${CATALINA_HOME}/
RUN cp -a ${DISTDIR}/keystore/metadata-keystore/keystore* ${CATALINA_HOME}/shared/classes/alfresco/extension/keystore/
RUN chmod -R o-rwx ${CATALINA_HOME}/
Expand All @@ -30,14 +29,15 @@ RUN sed -i \
${CATALINA_HOME}/webapps/alfresco/WEB-INF/classes/log4j2.properties

ADD amps /tmp/amps
ADD libs ${CATALINA_HOME}/lib/
RUN if [ -f /tmp/amps/alfresco-aos-module-*.amp ]; then umask 0027; \
unzip ${DISTDIR}/web-server/webapps/ROOT.war -d ${CATALINA_HOME}/webapps/ROOT/; \
cp ${CATALINA_HOME}/webapps/ROOT/META-INF/context.xml ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml; \
unzip ${DISTDIR}/web-server/webapps/_vti_bin.war -d ${CATALINA_HOME}/webapps/_vti_bin/; \
else echo "No AOS module found"; \
fi
RUN java -jar ${DISTDIR}/bin/alfresco-mmt.jar install /tmp/amps/ ${CATALINA_HOME}/webapps/alfresco -nobackup -directory
RUN java -jar ${DISTDIR}/bin/alfresco-mmt.jar list ${CATALINA_HOME}/webapps/alfresco
RUN java -jar ${DISTDIR}/bin/alfresco-mmt.jar install /tmp/amps/ ${CATALINA_HOME}/webapps/alfresco -nobackup -directory && \
java -jar ${DISTDIR}/bin/alfresco-mmt.jar list ${CATALINA_HOME}/webapps/alfresco

FROM tomcat_base AS repo-rhlike
ARG ALFRESCO_REPO_USER_ID
Expand Down
8 changes: 8 additions & 0 deletions repository/artifacts.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"artifacts": {
"acs23": [
{
"name": "postgresql",
"version": "42.6.0",
"classifier": ".jar",
"group": "org.postgresql",
"repository": "central",
"path": "repository/libs"
},
{
"name": "alfresco-share-services",
"version": "23.2.2.3",
Expand Down
4 changes: 4 additions & 0 deletions repository/libs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Alfresco Content Repository extra jars

Place here additionnal jar files you want to be depoloyed in Tomcat lib directory.
This is a suitable way to add JDBC drivers, for example.

0 comments on commit 5cffa63

Please sign in to comment.