what I like to do to always have matching UIDs ########## ########## # Dockerfile ARG CONTAINER_UID=1000 RUN useradd --create-home --home-dir /home/hks3 \ --uid $CONTAINER_UID --user-group --shell /bin/bash hks3 # building container docker-compose build --build-arg CONTAINER_UID=`id -u` ########## ########## now the ids always match. cheers david (HKS3 / koha-support.eu) On Wed, 22 Feb 2023, at 6:57 AM, David Cook wrote:
Hi all,
With the latest version of koha-testing-docker, you might have problems getting it to start up if your “koha” git directory is not owned by UID 1000.
I use koha-testing-docker on Windows, so I use a named volume to mount my “koha” git directory. It also means that I cloned that git repo and do my checkouts with the “root” user in koha-testing-docker (not as my normal user on a Docker host like you would do if you were using Linux as your workstation). So “root” owns my “koha” git directory, which causes koha-testing-docker to fail to startup.
I’ve worked around that by chowning my “koha” git repo to be owned by UID 1000, and that’s got it starting up, but it could have future issues where permissions aren’t quite right.
Anyway, just something to be aware of…
David Cook Senior Software Engineer Prosentient Systems Suite 7.03 6a Glen St Milsons Point NSW 2061 Australia
Office: 02 9212 0899 Online: 02 8005 0595
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/