Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit af59d89

Browse files
committed
[ckan#4430] run solr locally so we can override schema
1 parent 04457bb commit af59d89

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.circleci/config.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
name: ckan-postgres
2222
- image: redis:3
2323
name: ckan-redis
24-
- image: ckan/solr:latest
25-
name: ckan-solr
2624

2725
parallelism: 4
2826

@@ -38,14 +36,18 @@ jobs:
3836
apt install -y nodejs
3937
;;
4038
esac
41-
apt install -y nodejs postgresql-client
39+
apt install -y postgresql-client solr-jetty openjdk-8-jdk
4240
4341
# Python Dependencies
4442
pip install -r requirement-setuptools.txt
4543
pip install -r requirements.txt
4644
pip install -r dev-requirements.txt
4745
python setup.py develop
4846
47+
# SOLR config
48+
cp ~/project/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml
49+
service jetty9 restart || true # erroring out but does seem to work
50+
4951
# Database Creation
5052
psql --host=ckan-postgres --username=ckan --command="CREATE USER ${CKAN_POSTGRES_USER} WITH PASSWORD '${CKAN_POSTGRES_PWD}' NOSUPERUSER NOCREATEDB NOCREATEROLE;"
5153
createdb --encoding=utf-8 --host=ckan-postgres --username=ckan --owner=${CKAN_POSTGRES_USER} ${CKAN_POSTGRES_DB}

test-core-circle-ci.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ckan.redis.url = redis://ckan-redis:6379/1
1111

1212
sqlalchemy.url = postgresql://ckan_default:pass@ckan-postgres/ckan_test
1313

14-
solr_url = http://ckan-solr:8983/solr/ckan
14+
solr_url = http://localhost:8080/solr
1515

1616
[loggers]
1717
keys = root, ckan, sqlalchemy

0 commit comments

Comments
 (0)