-
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.
- Loading branch information
Showing
8 changed files
with
138 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 IMAGEMAGICK_DEP_RPM_URL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | ||
ENV IMAGEMAGICK_COMMON_PATH=tengine/imagemagick | ||
|
||
ARG ALFRESCO_IMAGEMAGICK_GROUP_NAME | ||
ARG ALFRESCO_IMAGEMAGICK_GROUP_ID | ||
ARG ALFRESCO_IMAGEMAGICK_USER_NAME | ||
ARG ALFRESCO_IMAGEMAGICK_USER_ID | ||
|
||
ADD ${IMAGEMAGICK_COMMON_PATH}/alfresco-transform-imagemagick*.jar /usr/bin/app.jar | ||
ADD ${IMAGEMAGICK_COMMON_PATH}/imagemagick-distribution*-el9.rpm /tmp/imagemagick-distribution-el9.rpm | ||
ADD ${IMAGEMAGICK_COMMON_PATH}/libs/imagemagick-distribution*-libs-el9.rpm /tmp/imagemagick-distribution-libs-el9.rpm | ||
|
||
RUN yum install -y $IMAGEMAGICK_DEP_RPM_URL && \ | ||
yum install -y /tmp/imagemagick-distribution-el9.rpm /tmp/imagemagick-distribution-libs-el9.rpm; \ | ||
yum clean all | ||
|
||
RUN groupadd -g ${ALFRESCO_IMAGEMAGICK_GROUP_ID} ${ALFRESCO_IMAGEMAGICK_GROUP_NAME} && \ | ||
useradd -u ${ALFRESCO_IMAGEMAGICK_USER_ID} -g ${ALFRESCO_IMAGEMAGICK_GROUP_NAME} ${ALFRESCO_IMAGEMAGICK_USER_NAME} && \ | ||
chgrp ${ALFRESCO_IMAGEMAGICK_GROUP_NAME} /usr/bin/app.jar | ||
|
||
USER ${ALFRESCO_IMAGEMAGICK_USER_NAME} | ||
|
||
HEALTHCHECK --interval=20s --timeout=10s --retries=3 --start-period=30s \ | ||
CMD curl -f http://localhost:8090/live || exit 1 | ||
|
||
COPY ${IMAGEMAGICK_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,20 @@ | ||
# Runtime variables | ||
|
||
Sets of variables configurable with your docker image | ||
|
||
## imagemagick | ||
|
||
```yaml | ||
|
||
transform-core-imagemagick: | ||
image: localhost/alfresco-imagemagick:YOUR-TAG | ||
environment: | ||
JAVA_OPTS: | ||
ACTIVEMQ_URL: nio://activemq:61616 | ||
FILE_STORE_URL: http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file | ||
|
||
``` | ||
|
||
- `JAVA_OPTS` - Additional java options | ||
- `ACTIVEMQ_URL` - The URL for Alfresco ActiveMQ. | ||
- `FILE_STORE_URL` - Alfresco Shared FileStore endpoint. |
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,30 @@ | ||
{ | ||
"artifacts": { | ||
"acs23": [ | ||
{ | ||
"name": "imagemagick-distribution", | ||
"version": "7.1.0-16-ci-10", | ||
"path": "tengine/imagemagick/libs", | ||
"classifier": "-libs-el9.rpm", | ||
"repository": "thirdparty", | ||
"group": "org.imagemagick" | ||
}, | ||
{ | ||
"name": "imagemagick-distribution", | ||
"version": "7.1.0-16-ci-10", | ||
"path": "tengine/imagemagick", | ||
"classifier": "-el9.rpm", | ||
"repository": "thirdparty", | ||
"group": "org.imagemagick" | ||
}, | ||
{ | ||
"name": "alfresco-transform-imagemagick", | ||
"version": "5.1.3", | ||
"path": "tengine/imagemagick", | ||
"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,3 @@ | ||
#!/bin/bash | ||
|
||
exec java $JAVA_OPTS $JAVA_OPTS_CONTAINER_FLAGS -jar /usr/bin/app.jar |
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,3 @@ | ||
This directory contains ImageMagick distribution libs artifacts. This ensures | ||
that the Dockerfile adds the correct artifacts without specifying hardcoded | ||
names. |
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,20 @@ | ||
# Runtime variables | ||
|
||
Sets of variables configurable with your docker image | ||
|
||
## libreoffice | ||
|
||
```yaml | ||
|
||
transform-core-libreoffice: | ||
image: localhost/alfresco-libreoffice:YOUR-TAG | ||
environment: | ||
JAVA_OPTS: | ||
ACTIVEMQ_URL: nio://activemq:61616 | ||
FILE_STORE_URL: http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file | ||
|
||
``` | ||
|
||
- `JAVA_OPTS` - Additional java options | ||
- `ACTIVEMQ_URL` - The URL for Alfresco ActiveMQ. | ||
- `FILE_STORE_URL` - Alfresco Shared FileStore endpoint. |