This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 3aea526d4b Remove the Solr leftovers from the Docker example and the
runtime indexes
3aea526d4b is described below
commit 3aea526d4bb1ff5e0fc83942f38d4fc178fe688b
Author: Mridul Pathak <[email protected]>
AuthorDate: Sun Oct 25 18:05:44 2026 +0530
Remove the Solr leftovers from the Docker example and the runtime indexes
The solr plugin is gone, but the framework still carried two of its files:
the postgres-demo Docker hook that copied the solr configuration, which only
ran when plugins/solr existed, and runtime/indexes/index.properties, the Solr
index path setting, which nothing reads.
- Remove applySolrConfig.sh and the after-config-applied.d mount it needed
in the postgres-demo docker-compose.yml.
- Remove runtime/indexes/index.properties.
---
.../after-config-applied.d/applySolrConfig.sh | 26 ----------------------
docker/examples/postgres-demo/docker-compose.yml | 1 -
runtime/indexes/index.properties | 22 ------------------
3 files changed, 49 deletions(-)
diff --git
a/docker/examples/postgres-demo/after-config-applied.d/applySolrConfig.sh
b/docker/examples/postgres-demo/after-config-applied.d/applySolrConfig.sh
deleted file mode 100644
index 71c891dfdb..0000000000
--- a/docker/examples/postgres-demo/after-config-applied.d/applySolrConfig.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-#####################################################################
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#####################################################################
-
-set -x
-
-if [ -d /ofbiz/plugins/solr ]; then
- sed "s/^solr.webapp.domainName=.*/solr.webapp.domainName=${OFBIZ_HOST}/" \
- /ofbiz/plugins/solr/config/solrconfig.properties >
/ofbiz/config/solrconfig.properties
-fi
diff --git a/docker/examples/postgres-demo/docker-compose.yml
b/docker/examples/postgres-demo/docker-compose.yml
index 9f849d74a8..dfa76d32bb 100644
--- a/docker/examples/postgres-demo/docker-compose.yml
+++ b/docker/examples/postgres-demo/docker-compose.yml
@@ -38,7 +38,6 @@ services:
ports:
- 8443:8443
volumes:
- -
./after-config-applied.d:/docker-entrypoint-hooks/after-config-applied.d
# Note, on Unix systems, ensure the ofbiz user (uid 1000) or group (gid
1000) running inside the container has
# write access to this directory on the host. If user namespace
remapping is in use, the ofbiz user/group may
# be mapped to host uid 165536 or gid 166536 depending on the
configuration in /etc/subuid and /etc/subgid.
diff --git a/runtime/indexes/index.properties b/runtime/indexes/index.properties
deleted file mode 100644
index 2b1fe70b70..0000000000
--- a/runtime/indexes/index.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-###############################################################################
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-###############################################################################
-
-# the default index path for solr, if this is not set or set wrong, ./index
will be used as the default index path
-# see
http://lucene.apache.org/solr/5_3_0/solr-core/org/apache/solr/core/SolrCore.html#getNewIndexDir()
-index=products