瀏覽代碼

upgrading Docker image to Solr latest

solr_update
Simon Bowie 2 年之前
父節點
當前提交
392cd2ea09
共有 3 個文件被更改,包括 8 次插入6 次删除
  1. +1
    -1
      docker-compose.prod.yml
  2. +1
    -1
      docker-compose.yml
  3. +6
    -4
      solr_import.sh

+ 1
- 1
docker-compose.prod.yml 查看文件

@@ -26,7 +26,7 @@ services:

solr:
container_name: solr
image: solr:8.11.1
image: solr:latest
ports:
- '8983:8983'
volumes:

+ 1
- 1
docker-compose.yml 查看文件

@@ -14,7 +14,7 @@ services:

solr:
container_name: solr
image: solr:8.11.1
image: solr:latest
ports:
- '8983:8983'
volumes:

+ 6
- 4
solr_import.sh 查看文件

@@ -47,7 +47,8 @@ Import()
{
docker exec -it solr bin/solr delete -c $core

docker exec -it solr solr create_core -c $core -d custom
#docker exec -it solr solr create_core -c $core -d custom
docker exec -it solr solr create_core -c $core

#docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/"

@@ -55,12 +56,12 @@ Import()

sleep 30

docker run --rm -v "$directory/$location:/$core" --network=host solr:8.11.1 post -c $core /$core
docker run --rm -v "$directory/$location:/$core" --network=host solr:latest post -c $core /$core
}

Import_recursive()
{
docker run --rm -v "$directory/$subdirectory:/$core" --network=host solr:8.11.1 post -c $core /$core
docker run --rm -v "$directory/$subdirectory:/$core" --network=host solr:latest post -c $core /$core
}
############################################################
############################################################
@@ -83,7 +84,8 @@ while getopts ":hlimzaespxdw" option; do
z) # index all
core="all"
docker exec -it solr bin/solr delete -c $core
docker exec -it solr solr create_core -c $core -d custom
#docker exec -it solr solr create_core -c $core -d custom
docker exec -it solr solr create_core -c $core
location="data/POP_Dataset_2022"
for subdirectory in $location/*/
do

Loading…
取消
儲存