Skip to content

Commit 13c5c4c

Browse files
committed
Do not override solr-update-core-and-start in the compose and stack files
The ghcr.io/kitconcept/solr image sets CMD ["solr-update-core-and-start"], which refreshes the config of an already existing core before calling solr-precreate. All three places that start Solr then set a command: of their own with plain solr-precreate, which replaces the CMD and disables the refresh, so a core that already exists on a volume keeps its old config. Call the script explicitly instead of relying on the CMD, so adding a command: back later cannot silently switch it off again.
1 parent fad4688 commit 13c5c4c

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

devops/stacks/demo.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ services:
9999
solr:
100100
image: ghcr.io/kitconcept/solr:${SOLR_TAG:-feature-ai-rag}
101101
command:
102-
- solr-precreate
103-
- plone
104-
- /plone-config
102+
- solr-update-core-and-start
105103
environment:
106104
SOLR_MODULES: extraction
107105
SOLR_OPTS: "-Dsolr.tika.url=http://${STACK_NAME}-tika:9998"

devops/stacks/persistent.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ services:
134134
solr:
135135
image: ghcr.io/kitconcept/solr:${SOLR_TAG:-feature-ai-rag}
136136
command:
137-
- solr-precreate
138-
- plone
139-
- /plone-config
137+
- solr-update-core-and-start
140138
environment:
141139
SOLR_MODULES: extraction
142140
SOLR_OPTS: "-Dsolr.tika.url=http://${STACK_NAME}-tika:9998"

docker-compose-dev.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ x-solr: &solr
5757
ports:
5858
- 8983:8983
5959
command:
60-
- solr-precreate
61-
- plone
62-
- /plone-config
60+
- solr-update-core-and-start
6361
environment:
6462
SOLR_MODULES: extraction
6563

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Stop overriding the Solr image `CMD` with `solr-precreate`, so config updates reach an existing core (kitconcept/kitconcept.solr#107). @reekitconcept

0 commit comments

Comments
 (0)