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

The Lizmap Server cach with docker compose #77

Open
nde34 opened this issue Dec 19, 2024 · 1 comment
Open

The Lizmap Server cach with docker compose #77

nde34 opened this issue Dec 19, 2024 · 1 comment

Comments

@nde34
Copy link

nde34 commented Dec 19, 2024

Hello !

I followed the guide here to generate the server cach on one layer to test it.
So i get inside the lwc docker and put the commands there, all is fine until i have to exec this one:
lizmap/install/set_rights.sh www-data www-data
I receive this : chown: unknown user/group www-data:www-data
The script executed is this one:

#!/bin/sh
SCRIPTDIR=$(dirname $0)

USER="$1"
GROUP="$2"

if [ "$USER" = "" ]; then
    USER="www-data"
fi

if [ "$GROUP" = "" ]; then
    GROUP="www-data"
fi

VARDIR="$SCRIPTDIR/../var"
WWWDIR="$SCRIPTDIR/../www"

DIRS="$VARDIR/config $VARDIR/db $VARDIR/log $VARDIR/themes $VARDIR/overloads"
DIRS="$DIRS $VARDIR/mails $VARDIR/uploads $VARDIR/lizmap-theme-config"
DIRS="$DIRS $SCRIPTDIR/../../temp/lizmap $WWWDIR/cache/ $WWWDIR/document/ $WWWDIR/live/"

chown -R $USER:$GROUP $DIRS
chmod -R ug+w $DIRS

So inside the docker, wich owner should i give to the dirs ?

Thank you

@nde34 nde34 changed the title The Lizmap Server cach with docker compose [QUESTION] The Lizmap Server cach with docker compose Dec 19, 2024
@nde34 nde34 changed the title [QUESTION] The Lizmap Server cach with docker compose The Lizmap Server cach with docker compose Dec 19, 2024
@nworr
Copy link
Contributor

nworr commented Dec 19, 2024

user and group are inherited from host running docker

LIZMAP_UID=${LIZMAP_UID:-$(id -u)}

then
user: ${LIZMAP_UID}:${LIZMAP_GID}

id -u and id -g should give you the proper id

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

2 participants