Bläddra i källkod

upgrading Docker image to Solr latest

solr_update
Simon Bowie 2 år sedan
förälder
incheckning
392cd2ea09
3 ändrade filer med 8 tillägg och 6 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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

Laddar…
Avbryt
Spara