<!DOCTYPE html><html><head><title></title><style type="text/css">#qt p.qt-MsoNormal{margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;font-size:11pt;font-family:"Calibri", sans-serif;}

p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>what I like to do to always have matching UIDs<br></div><div><br></div><div><div>##########<br></div><div>##########<br></div><div><br></div></div><div># Dockerfile<br></div><div>ARG CONTAINER_UID=1000<br></div><div>RUN useradd --create-home --home-dir /home/hks3 \<br></div><div>            --uid $CONTAINER_UID --user-group --shell /bin/bash hks3<br></div><div></div><div><br></div><div># building container<br></div><div>docker-compose build --build-arg CONTAINER_UID=`id -u`<br></div><div></div><div><div><br></div><div>##########<br></div><div>##########<br></div><div><br></div><div>now the ids always match.<br></div></div><div><br></div><div><br></div><div>cheers<br></div><div>david (HKS3 / koha-support.eu)<br></div><div><br></div><div>On Wed, 22 Feb 2023, at 6:57 AM, David Cook wrote:<br></div><blockquote type="cite" id="qt" style="overflow-wrap:break-word;"><div class="qt-WordSection1"><p class="qt-MsoNormal">Hi all,<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">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.<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">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.<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">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.<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">Anyway, just something to be aware of…<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal"><span style="">David Cook</span><br></p><p class="qt-MsoNormal"><span style="">Senior Software Engineer</span><br></p><p class="qt-MsoNormal"><span style="">Prosentient Systems</span><br></p><p class="qt-MsoNormal"><span style="">Suite 7.03</span><br></p><p class="qt-MsoNormal"><span style="">6a Glen St</span><br></p><p class="qt-MsoNormal"><span style="">Milsons Point NSW 2061</span><br></p><p class="qt-MsoNormal"><span style="">Australia</span><br></p><p class="qt-MsoNormal"><span style=""> </span><br></p><p class="qt-MsoNormal"><span style="">Office: 02 9212 0899</span><br></p><p class="qt-MsoNormal"><span style="">Online: 02 8005 0595</span><br></p><p class="qt-MsoNormal"> <br></p></div><div>_______________________________________________<br></div><div>Koha-devel mailing list<br></div><div><a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br></div><div><a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br></div><div>website : <a href="https://www.koha-community.org/">https://www.koha-community.org/</a><br></div><div>git : <a href="https://git.koha-community.org/">https://git.koha-community.org/</a><br></div><div>bugs : <a href="https://bugs.koha-community.org/">https://bugs.koha-community.org/</a><br></div><div><br></div></blockquote><div><br></div></body></html>