Alfresco / alfresco-docker-installer

Generator to build Docker Compose templates to deploy Alfresco Community
Other
142 stars 57 forks source link

set predictable uid in docker-compose #120

Open hi-ko opened 2 years ago

hi-ko commented 2 years ago

to avoid issues like #1 not having the required filesysstem permissions on the volumes the alfresco-docker-installer should set predictable uid and gid similar to:

user: "${REPO_UID}:${REPO_GID}"

in the docker compose and provide the variables on execution (or as environment variables)

REPO_UID=${REPO_UID} REPO_GID=${REPO_GID} docker-compose up
Lucas-Ribeiro-Lima commented 1 year ago

What UID and GID is suposed to provide in execution

Lucas-Ribeiro-Lima commented 1 year ago

I'm with the issue of post #1 I resolved the issue in version 6.2, changing the ownership of ./data folders to respectives containers user's, but this is not working for the latest version. Its looks like we have one more dependency on Ocr data folders, so i tried set the UID correct for this folders too, but it's not working too

aborroy commented 1 year ago

Not sure if I understand the problem.

In order to get the right ownership configuration for data and logs folders, you may use the option:

? Do you want to get the script to create host volumes? Yes

This will generate a shell script create_volumes.sh including the configuration. Just executing this script in the docker-compose folder, will create required structure.

The configuration for OCR (angelborroy/alfresco-tengine-ocr:1.0.0 is required for ACS 7.0+) doesn't include local binding folders. Remember to use following option:

? Select the addons to be installed: Alfresco OCR Transformer 1.0.0 (for Alfresco 7+)