Re: Running Solr as an arbitrary user

2023-07-15 Thread Hisashi Kojima
> Yes, you'll have to edit and rebuild every time. > you don't have to do that often. > Basically, if you have a single self-contained stand-alone daemon, and > all it needs is to write to a mounted volume, all you need is for the > UID:GID that the daemon runs as to match the UID:GID on the volum

Re: Running Solr as an arbitrary user

2023-07-15 Thread dmitri maziuk
On 2023-07-15 7:10 PM, Hisashi Kojima wrote: FYI, MySQL and PostgreSQL images support an arbitrary user other than root. Basically, if you have a single self-contained stand-alone daemon, and all it needs is to write to a mounted volume, all you need is for the UID:GID that the daemon runs

Re: Running Solr as an arbitrary user

2023-07-15 Thread dmitri maziuk
On 2023-07-15 7:10 PM, Hisashi Kojima wrote: ... Dima, thanks for the suggestion. However, I should rewrite when the Solr "official" image updates, right? Yes, you'll have to edit and rebuild every time. FWIW you don't have to update often, e.g. we were running on 6.x for years until upgrading

Re: Running Solr as an arbitrary user

2023-07-15 Thread Hisashi Kojima
t should be easier 😊 > > -ufuk yilmaz > > > Sent from Mail for Windows > > From: Hisashi Kojima > Sent: Sunday, July 16, 2023 3:11 AM > To: users@solr.apache.org > Subject: Re: Running Solr as an arbitrary user > > I use solr-docker with the server in my university la

RE: Running Solr as an arbitrary user

2023-07-15 Thread ufuk yılmaz
y, July 16, 2023 3:11 AM To: users@solr.apache.org Subject: Re: Running Solr as an arbitrary user I use solr-docker with the server in my university lab. > Are you using numeric uid/gid in that config, or names? Yes, I use numeric uid/gid. > Unless I'm mistaken one of the primary benef

Re: Running Solr as an arbitrary user

2023-07-15 Thread Hisashi Kojima
I use solr-docker with the server in my university lab. > Are you using numeric uid/gid in that config, or names? Yes, I use numeric uid/gid. > Unless I'm mistaken one of the primary benefits of using docker is that > you can avoid having to heavily customize things in each application > so that

Re: Running Solr as an arbitrary user

2023-07-15 Thread dmitri maziuk
On 2023-07-15 11:55 AM, Shawn Heisey wrote: On 7/15/23 10:30, dmitri maziuk wrote: OP needs to pull Dockerfile from upstream, change the numbers in ``` ENV SOLR_USER="solr" \ SOLR_UID="8983" \ SOLR_GROUP="solr" \ SOLR_GID="8983" \ ... ``` Thanks for that detail!  Always lea

Re: Running Solr as an arbitrary user

2023-07-15 Thread Shawn Heisey
On 7/15/23 10:30, dmitri maziuk wrote: OP needs to pull Dockerfile from upstream, change the numbers in ``` ENV SOLR_USER="solr" \     SOLR_UID="8983" \     SOLR_GROUP="solr" \     SOLR_GID="8983" \     ... ``` Thanks for that detail! Always learning something new about Solr. Shawn

Re: Running Solr as an arbitrary user

2023-07-15 Thread dmitri maziuk
On 2023-07-15 11:13 AM, Shawn Heisey wrote: ... Why do you need to change the user/group? It is possible that the numbers used by the container are already taken by something else on the host: there's no set standard, only some linux conventions that are younger than some unix user accounts.

Re: Running Solr as an arbitrary user

2023-07-15 Thread Shawn Heisey
On 7/15/23 02:16, 小嶋恒 wrote: I use solr-docker 9.2.1. It works with the user “solr” (default) but does not work with other users. I run the below docker-compose.yml code with the command “docker compose up": # version: ‘3’ services: solr: image: solr:9.2.1 user: “${UID:?}:

Re: Running Solr as an arbitrary user

2023-07-15 Thread dmitri maziuk
On 2023-07-15 3:16 AM, 小嶋恒 wrote: Cannot write to /var/solr as UID:GID drwxrwx--- 4 solr root 4096 Jul 15 07:49 /var/solr What are the numbers for $UID, $GID, and solr (`ls -n`)? Dima

Running Solr as an arbitrary user

2023-07-15 Thread 小嶋恒
Hello, I use solr-docker 9.2.1. It works with the user “solr” (default) but does not work with other users. I run the below docker-compose.yml code with the command “docker compose up": # version: ‘3’ services: solr: image: solr:9.2.1 user: “${UID:?}:${GID:?}” # Ple