Skip to content

Commit e70ee11

Browse files
authored
Merge pull request #655 from IU-Libraries-Joint-Development/solr9
First steps to solr 9: run in development and circleci tests
2 parents 0be0d16 + 795473a commit e70ee11

9 files changed

Lines changed: 413 additions & 27 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ jobs:
3131
- image: ghcr.io/samvera/fcrepo4:4.7.5
3232
environment:
3333
CATALINA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
34-
- image: solr:7
34+
- image: solr:9
3535
command: bin/solr -cloud -noprompt -f -p 8985
36+
environment:
37+
- SOLR_MODULES=analysis-extras,extraction
3638
- image: cimg/mysql:8.0
3739
command: --default-authentication-plugin=mysql_native_password
3840
environment:
@@ -120,7 +122,7 @@ jobs:
120122
cd solr/conf
121123
zip -1 -r solr_hyrax_config.zip ./*
122124
curl -H "Content-type:application/octet-stream" --data-binary @solr_hyrax_config.zip "http://localhost:8985/solr/admin/configs?action=UPLOAD&name=hyrax"
123-
curl -H 'Content-type: application/json' http://localhost:8985/api/collections/ -d '{create: {name: hydra-test, config: hyrax, numShards: 1}}'
125+
curl "http://localhost:8985/solr/admin/collections?action=CREATE&name=hydra-test&numShards=1&collection.configName=hyrax"
124126
125127
- ruby/rspec-test
126128

docker-compose.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ x-app:
2121
- rails_cache:/app/tmp/cache
2222
- ./config/essi_config.docker.yml:/run/secrets/essi_config.yml
2323
depends_on:
24-
- redis_jobs
25-
- solr
26-
- fcrepo
27-
- db
28-
- minio
29-
- cantaloupe
30-
- chrome
24+
redis_jobs:
25+
condition: service_started
26+
solr:
27+
condition: service_started
28+
fcrepo:
29+
condition: service_started
30+
minio:
31+
condition: service_started
32+
cantaloupe:
33+
condition: service_started
34+
chrome:
35+
condition: service_started
36+
db:
37+
condition: service_healthy
3138

3239
services:
3340
web:
@@ -71,6 +78,8 @@ services:
7178
- './db/50-mysql-create-db.sql:/docker-entrypoint-initdb.d/50-mysql-create-db.sql'
7279
environment:
7380
MYSQL_ROOT_PASSWORD: essi
81+
healthcheck:
82+
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
7483

7584
minio:
7685
image: bitnami/minio:latest
@@ -148,17 +157,15 @@ services:
148157
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 256mb
149158

150159
solr:
151-
image: solr:6.6
160+
image: solr:9
152161
ports:
153162
- "8983:8983"
154163
volumes:
155164
- './solr:/myconfig:delegated'
156-
- solr:/opt/solr/server/solr/mycores
157-
- './solr/lib/tokenizing-suggest-v1.0.1.jar:/opt/solr/contrib/tokenizing-suggest-v1.0.1.jar'
158165
- './solr/50-precreate-cores.sh:/docker-entrypoint-initdb.d/50-precreate-cores.sh'
159-
entrypoint:
160-
- docker-entrypoint.sh
161-
- solr-foreground
166+
- solr:/var/solr
167+
environment:
168+
- SOLR_MODULES=analysis-extras,extraction
162169

163170
fcrepo:
164171
image: ghcr.io/samvera/fcrepo4:4.7.5

0 commit comments

Comments
 (0)