Skip to content

Commit

Permalink
fixup solr flag from -j to --jvm-opts
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Feb 26, 2025
1 parent 734ef21 commit 8bf3152
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ RUN create-service-user.sh --name solr /data && \

# Defaults environment variables to be overloaded.
ENV \
SOLR_JAVA_OPTS=-Dsolr.config.lib.enabled=true \
SOLR_JETTY_OPTS=-Dsolr.jetty.host=0.0.0.0 \
SOLR_JAVA_OPTS= \
SOLR_JETTY_OPTS="-Dsolr.jetty.host=0.0.0.0 -Dsolr.config.lib.enabled=true" \
SOLR_LOG_LEVEL=INFO \
SOLR_MEMORY=512m

Expand Down
12 changes: 6 additions & 6 deletions solr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ additional settings, volumes, ports, etc.

## Settings

| Environment Variable | Default | Description |
| :------------------- | :-------------------------- | :----------------------------------------------------------------------------- |
| SOLR_JAVA_OPTS | | Additional parameters to pass to the JVM when starting Solr |
| SOLR_JETTY_OPTS | `-Dsolr.jetty.host=0.0.0.0` | Additional parameters to pass to Jetty when starting Solr. |
| SOLR_LOG_LEVEL | `INFO` | Log level. Possible Values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL |
| SOLR_MEMORY | `512m` | Sets the min (-Xms) and max (-Xmx) heap size for the JVM |
| Environment Variable | Default | Description |
| :------------------- | :--------------------------------------------------------- | :----------------------------------------------------------------------------- |
| SOLR_JAVA_OPTS | `` | Additional parameters to pass to the JVM when starting Solr |
| SOLR_JETTY_OPTS | `-Dsolr.jetty.host=0.0.0.0 -Dsolr.config.lib.enabled=true` | Additional parameters to pass to Jetty when starting Solr. |
| SOLR_LOG_LEVEL | `INFO` | Log level. Possible Values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL |
| SOLR_MEMORY | `512m` | Sets the min (-Xms) and max (-Xmx) heap size for the JVM |

## Ports

Expand Down
2 changes: 1 addition & 1 deletion solr/rootfs/etc/s6-overlay/s6-rc.d/solr/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
ARGS=(-m "${SOLR_MEMORY}")

if [[ -n "${SOLR_JETTY_OPTS}" ]]; then
ARGS+=(-j "${SOLR_JETTY_OPTS}")
ARGS+=(--jvm-opts "${SOLR_JETTY_OPTS}")
fi

if [[ -n "${SOLR_JAVA_OPTS}" ]]; then
Expand Down

0 comments on commit 8bf3152

Please sign in to comment.