-
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-2728 Add T-engine misc image Dockerfile (#20)
- Loading branch information
Showing
8 changed files
with
104 additions
and
6 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,25 @@ | ||
FROM java_base | ||
|
||
ENV MISC_COMMON_PATH=tengine/misc | ||
ENV JAVA_OPTS_CONTAINER_FLAGS=-XX:MaxRAMPercentage=80 | ||
|
||
EXPOSE 8090 | ||
|
||
ARG ALFRESCO_MISC_GROUP_NAME | ||
ARG ALFRESCO_MISC_GROUP_ID | ||
ARG ALFRESCO_MISC_USER_NAME | ||
ARG ALFRESCO_MISC_USER_ID | ||
|
||
ADD ${MISC_COMMON_PATH}/alfresco-transform-misc*.jar /opt/app.jar | ||
|
||
RUN groupadd -g ${ALFRESCO_MISC_GROUP_ID} ${ALFRESCO_MISC_GROUP_NAME} && \ | ||
useradd -u ${ALFRESCO_MISC_USER_ID} -g ${ALFRESCO_MISC_GROUP_NAME} ${ALFRESCO_MISC_USER_NAME} && \ | ||
chgrp ${ALFRESCO_MISC_GROUP_NAME} /opt/app.jar | ||
|
||
USER ${ALFRESCO_MISC_USER_NAME} | ||
|
||
HEALTHCHECK --interval=20s --timeout=10s --retries=3 --start-period=30s \ | ||
CMD curl -f http://localhost:8090/live || exit 1 | ||
|
||
COPY ${MISC_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 @@ | ||
# Runtime variables | ||
|
||
Sets of variables configurable with your docker image | ||
|
||
## misc | ||
|
||
```yaml | ||
|
||
transform-core-misc: | ||
image: localhost/alfresco-misc:YOUR-TAG | ||
environment: | ||
JAVA_OPTS: | ||
ACTIVEMQ_URL: nio://activemq:61616 | ||
ACTIVEMQ_USER: admin | ||
ACTIVEMQ_PASSWORD: admin | ||
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,14 @@ | ||
{ | ||
"artifacts": { | ||
"acs23": [ | ||
{ | ||
"name": "alfresco-transform-misc", | ||
"version": "5.1.3", | ||
"path": "tengine/misc", | ||
"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 |
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