-
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-2725 Add T-Engine LibreOffice image Dockerfile
- Loading branch information
Showing
5 changed files
with
90 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM java_base | ||
|
||
EXPOSE 8090 | ||
|
||
ENV JAVA_OPTS_CONTAINER_FLAGS=-XX:MaxRAMPercentage=80 | ||
ENV LIBREOFFICE_COMMON_PATH=tengine/libreoffice | ||
|
||
ARG ALFRESCO_LIBREOFFICE_GROUP_NAME | ||
ARG ALFRESCO_LIBREOFFICE_GROUP_ID | ||
ARG ALFRESCO_LIBREOFFICE_USER_NAME | ||
ARG ALFRESCO_LIBREOFFICE_USER_ID | ||
|
||
ADD ${LIBREOFFICE_COMMON_PATH}/alfresco-transform-libreoffice*.jar /usr/bin/app.jar | ||
ADD ${LIBREOFFICE_COMMON_PATH}/libreoffice-dist*.gz libreoffice-dist.gz | ||
|
||
RUN yum install -y cairo cups-libs libSM libGLU && \ | ||
tar xzf libreoffice-dist-linux.gz && \ | ||
yum localinstall -y LibreOffice*/RPMS/*.rpm && \ | ||
rm -rf libreoffice-dist-linux.gz LibreOffice_*_Linux_x86-64_rpm; \ | ||
yum clean all | ||
|
||
RUN groupadd -g ${ALFRESCO_LIBREOFFICE_GROUP_ID} ${ALFRESCO_LIBREOFFICE_GROUP_NAME} && \ | ||
useradd -u ${ALFRESCO_IMAGEMAGICK_USER_ID} -g ${ALFRESCO_LIBREOFFICE_GROUP_NAME} ${ALFRESCO_LIBREOFFICE_USER_NAME} && \ | ||
chgrp ${ALFRESCO_LIBREOFFICE_GROUP_NAME} /usr/bin/app.jar | ||
|
||
USER ${ALFRESCO_LIBREOFFICE_USER_NAME} | ||
|
||
HEALTHCHECK --interval=20s --timeout=10s --retries=3 --start-period=30s \ | ||
CMD curl -f http://localhost:8090/live || exit 1 | ||
|
||
COPY ${LIBREOFFICE_COMMON_PATH}/entrypoint.sh /entrypoint.sh | ||
CMD ["/entrypoint.sh"] |
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,22 @@ | ||
{ | ||
"artifacts": { | ||
"acs23": [ | ||
{ | ||
"name": "libreoffice-dist", | ||
"version": "7.2.5", | ||
"path": "tengine/libreoffice", | ||
"classifier": "-linux.gz", | ||
"repository": "thirdparty", | ||
"group": "org.libreoffice" | ||
}, | ||
{ | ||
"name": "alfresco-transform-libreoffice", | ||
"version": "5.1.3", | ||
"path": "tengine/libreoffice", | ||
"classifier": ".jar", | ||
"repository": "releases", | ||
"group": "org.alfresco" | ||
} | ||
] | ||
} | ||
} |
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,2 @@ | ||
#!/bin/bash | ||
exec java $JAVA_OPTS $JAVA_OPTS_CONTAINER_FLAGS -jar /opt/app.jar |