Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set predictable uid in docker-compose #120

Open
hi-ko opened this issue Mar 22, 2022 · 3 comments
Open

set predictable uid in docker-compose #120

hi-ko opened this issue Mar 22, 2022 · 3 comments

Comments

@hi-ko
Copy link

hi-ko commented Mar 22, 2022

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
Copy link

What UID and GID is suposed to provide in execution

@Lucas-Ribeiro-Lima
Copy link

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
Copy link
Contributor

aborroy commented Oct 5, 2022

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+)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants