Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Jul 31, 2024
1 parent bc5b398 commit f80f9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
*.jar
*.rpm
*.gz
*.tgz
4 changes: 2 additions & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,15 @@ target "tengine_libreoffice" {
}

variable "ALFRESCO_PDFRENDERER_USER_NAME" {
default = "libreoffice"
default = "pdfrenderer"
}

variable "ALFRESCO_PDFRENDERER_USER_ID" {
default = "33001"
}

target "tengine_pdfrenderer" {
dockerfile = "./tengine/libreoffice/Dockerfile"
dockerfile = "./tengine/pdfrenderer/Dockerfile"
inherits = ["java_base"]
contexts = {
java_base = "target:java_base"
Expand Down
2 changes: 1 addition & 1 deletion tengine/pdfrenderer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN --mount=type=bind,source=${PDFRENDERER_COMMON_PATH},target=/dist \
ADD ${PDFRENDERER_COMMON_PATH}/alfresco-transform-pdf-renderer*.jar /opt/app.jar

RUN groupadd -g ${ALFRESCO_PDFRENDERER_GROUP_ID} ${ALFRESCO_PDFRENDERER_GROUP_NAME} && \
useradd ${ALFRESCO_PDFRENDERER_USER_ID} -g ${ALFRESCO_PDFRENDERER_GROUP_NAME} ${ALFRESCO_PDFRENDERER_USER_NAME} && \
useradd -u ${ALFRESCO_PDFRENDERER_USER_ID} -g ${ALFRESCO_PDFRENDERER_GROUP_NAME} ${ALFRESCO_PDFRENDERER_USER_NAME} && \
chgrp ${ALFRESCO_PDFRENDERER_GROUP_NAME} /opt/app.jar

USER ${ALFRESCO_PDFRENDERER_USER_NAME}
Expand Down

0 comments on commit f80f9a8

Please sign in to comment.