Hi,

with the solr 9.8.1 docker image, I get this message if I start the
container:

####################################
Solr will start in SolrCloud mode by default in version 10, and you will have 
to provide --user-managed if you want to stay on the user-managed (aka. 
standalone) mode.
####################################

I am using the solr-precreate command, which is delivered with the
image, to start the container.

The problem is, the solr-precreate does not forward $@ to the solr-
fg command, because commands given there may be incompatible with solr-
fg and are used for the precreate-core call - however, how to add "--
user-managed" to the solr-fg call in that case?

I had a look at [0] but did not find e.g. an environment variable I
could use to add this argument.


############ solr-precreate start ############
echo "Executing $0" "$@"

if [[ "${VERBOSE:-}" == "yes" ]]; then
    set -x
fi

# Could set env-variables for solr-fg
source run-initdb

precreate-core "$@"

exec solr-fg
############ solr-precreate end ############


Anyone an idea how to add "--user-managed" to the solr-fg command,
without overriding the solr-precreate script in the image - if I
override that script and change it to:

##############
exec solr-fg --user-managed
##############

it works like expected, but I would rather not have to do that.

If there is no way to do that at the moment, should I open an
Improvement issue at [1]?

Torsten

[0] 
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-in-docker.html
[1] https://issues.apache.org/jira/projects/SOLR/issues

Reply via email to