-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2800 Add share component dockerfile
- Loading branch information
Showing
10 changed files
with
874 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM tomcat_base | ||
|
||
USER root | ||
EXPOSE 8000 | ||
|
||
RUN mkdir -p ${CATALINA_HOME}/shared/classes/alfresco/web-extension \ | ||
${CATALINA_HOME}/amps_share \ | ||
${CATALINA_HOME}/webapps/share/ \ | ||
${CATALINA_HOME}/alfresco-mmt/ \ | ||
/licenses | ||
|
||
COPY substituter.sh ${CATALINA_HOME}/shared/classes/alfresco | ||
|
||
ADD distribution /tmp/ | ||
ENV DISTDIR="/tmp/distribution" | ||
|
||
RUN yum install -y unzip xmlstarlet && \ | ||
unzip /tmp/*.zip -d ${DISTDIR} &&\ | ||
unzip ${DISTDIR}/alfresco*/web-server/webapps/share.war -d ${CATALINA_HOME}/webapps/share/ &&\ | ||
cp ${DISTDIR}/alfresco*/bin/* ${CATALINA_HOME}/alfresco-mmt/ &&\ | ||
cp -r ${DISTDIR}/alfresco*/amps ${CATALINA_HOME}/amps_share &&\ | ||
cp ${DISTDIR}/alfresco*/web-extension-samples/custom-slingshot-application-context.xml.sample ${CATALINA_HOME}/shared/classes/alfresco/web-extension &&\ | ||
cp ${DISTDIR}/alfresco*/web-extension-samples/smartfolders-amp-actions-config.xml ${CATALINA_HOME}/shared/classes/alfresco/web-extension &&\ | ||
cp /tmp/share-config-custom.xml ${CATALINA_HOME}/shared/classes/alfresco/web-extension &&\ | ||
rm -rf ${DISTDIR} /tmp &&\ | ||
sed -i "s/shared.loader=/shared.loader=\${catalina.base}\/shared\/classes/" ${CATALINA_HOME}/conf/catalina.properties &&\ | ||
chmod +x ${CATALINA_HOME}/shared/classes/alfresco/substituter.sh &&\ | ||
yum clean all && rm -rf /var/cache/yum | ||
|
||
RUN java -jar ${CATALINA_HOME}/alfresco-mmt/alfresco-mmt*.jar install \ | ||
${CATALINA_HOME}/amps_share ${CATALINA_HOME}/webapps/share -directory -nobackup -force | ||
|
||
ENTRYPOINT ["/usr/local/tomcat/shared/classes/alfresco/substituter.sh", "catalina.sh run"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"artifacts": { | ||
"acs23": [ | ||
{ | ||
"name": "alfresco-content-services-share-distribution", | ||
"version": "23.2.2", | ||
"path": "share/distribution", | ||
"classifier": ".zip", | ||
"group": "org.alfresco", | ||
"repository": "enterprise-releases" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Alfresco Content Services share distribution | ||
|
||
Place here the version of Alfresco Content Services share distribution you want to | ||
use in your Docker image. | ||
Distribution file must be a ZIP file with the expected structure of an Alfresco | ||
Content Services share distribution. | ||
|
||
```tree | ||
amps/ | ||
bin/ | ||
web-extension-samples/ | ||
web-server/ | ||
|_webapps/ | ||
|_conf/ | ||
|_Catalina/ | ||
|_localhost/ | ||
``` |
Oops, something went wrong.