Browse Source

explicitly specifying Solr version in Docker Compose

solr_update
Simon Bowie 2 years ago
parent
commit
4a9bc2ce1e
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      docker-compose.prod.yml
  2. +1
    -1
      docker-compose.yml
  3. +2
    -2
      solr_import.sh

+ 1
- 1
docker-compose.prod.yml View File



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

+ 1
- 1
docker-compose.yml View File



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

+ 2
- 2
solr_import.sh View File



sleep 30 sleep 30


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


Import_recursive() Import_recursive()
{ {
docker run --rm -v "$directory/$subdirectory:/$core" --network=host solr:latest post -c $core /$core
docker run --rm -v "$directory/$subdirectory:/$core" --network=host solr:8.11.1 post -c $core /$core
} }
############################################################ ############################################################
############################################################ ############################################################

Loading…
Cancel
Save