@@ -11,21 +11,47 @@ subprojects {
1111 def tomcatProject = project(getTomcatProject(project. alfresco. version. major))
1212 def tomcatImage = tomcatProject. getTasks(). getByName(' buildDockerImage' )
1313 println " tomcatImage: ${ tomcatImage.getImageId()} "
14-
14+ configurations {
15+ sharedBin
16+ }
17+ dependencies {
18+ sharedBin(group : ' org.alfresco' , name : ' alfresco-pdf-renderer' , version : ' 1.1' , classifier : ' linux' , ext : ' tgz' )
19+ }
1520 dockerBuild {
1621 repositories = [calcRepository(project. alfresco. flavor, true )]
1722 tags = calcTags(project. alfresco. version)
1823 }
1924
2025 createDockerFile {
2126 smartCopy " ${ project.parent.projectDir} /src/shared/main/bash/entrypoint/docker-entrypoint.d/" , ' /docker-entrypoint.d/'
27+ if (! configurations. sharedBin. isEmpty())
28+ smartCopy(tarTree(resources. gzip(configurations. sharedBin. singleFile)), ' /opt/alfresco' )
29+
2230 dependsOn(tomcatImage)
2331 baseImage = tomcatImage. getImageId()
2432 volume(' /opt/alfresco/alf_data' )
2533 environmentVariable(' ALFRESCO_VERSION' , " ${ project.alfresco.version.major} .${ project.alfresco.version.minor} .${ project.alfresco.version.rev} " )
2634 environmentVariable(' ALFRESCO_FLAVOR' , " ${ project.alfresco.version.flavor} " )
2735 environmentVariable(' ALFRESCO_ENABLED' , " true" )
2836
37+ runCommand(" apt-get update" )
38+ runCommand(" apt-get install -y unzip vim locate jq gettext-base" )
39+ runCommand(" apt-get install -y ghostscript imagemagick" )
40+ runCommand(" apt-get install -y libice6 libsm6 libxt6 libxrender1 libxinerama1 libfontconfig1 libcups2 libdbus-glib-1-2 libglu1 libreoffice" )
41+ runCommand(" apt-get install -y -f libjpeg62 libart-2.0-2" )
42+
43+
44+ environmentVariable(" GLOBAL_transform.service.enabled" , " true" )
45+ environmentVariable(" GLOBAL_ooo.enabled" , " false" )
46+ environmentVariable(" GLOBAL_jodconverter.enabled" , " true" )
47+ environmentVariable(" GLOBAL_ooo.exe" , " /usr/lib/libreoffice/program/soffice" )
48+ environmentVariable(" GLOBAL_jodconverter.officeHome" , " /usr/lib/libreoffice/" )
49+ environmentVariable(" GLOBAL_img.exe" , " /usr/bin/convert" )
50+ environmentVariable(" GLOBAL_img.root" , " /etc/ImageMagick" )
51+ environmentVariable(" GLOBAL_img.dyn" , " /usr/lib" )
52+ environmentVariable(" GLOBAL_swf.exe" , " /usr/bin/pdf2swf" )
53+ environmentVariable(" GLOBAL_alfresco-pdf-renderer.root" , " /opt/alfresco" )
54+ environmentVariable(" GLOBAL_alfresco-pdf-renderer.exe" , " /opt/alfresco/alfresco-pdf-renderer" )
2955 }
3056
3157 // Disable pull because base image is built locally and not pushed to a repo
0 commit comments