Skip to content

Commit a9459e1

Browse files
Merge pull request #148 from keitaroinc/2.11-xloader
2.11 xloader and solr fix
2 parents 9ea62a8 + 3613a5a commit a9459e1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Readme.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ Directory layout:
2929
## Running CKAN using docker-compose
3030
To start CKAN using docker-compose, simply change into the *compose* directory and run
3131
```sh
32-
cd compose/2.9
33-
docker-compose build
34-
docker-compose up
32+
make start
3533
```
34+
This will build the docker images and start the necesaary containers and with
35+
```sh
36+
make prune
37+
```
38+
the containers are deleted along with the volume
3639
Check if CKAN was succesfuly started on http://localhost:5000.
3740

3841
### Configuration

compose/solr/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM solr:${SOLR_VERSION:-9}
55
EXPOSE 8983
66

77
ARG CKAN_BRANCH
8+
RUN echo ${CKAN_BRANCH} | sed 's/\-xloader//g' > /tmp/version
89

910
ENV SOLR_CONFIG_DIR="/opt/solr/server/solr/configsets"
1011
ENV SOLR_SCHEMA_FILE="$SOLR_CONFIG_DIR/ckan/conf/managed-schema"
@@ -15,7 +16,8 @@ USER root
1516
RUN cp -R $SOLR_CONFIG_DIR/_default $SOLR_CONFIG_DIR/ckan
1617

1718
# Update the schema
18-
ADD https://raw.githubusercontent.com/ckan/ckan/$CKAN_BRANCH/ckan/config/solr/schema.xml $SOLR_SCHEMA_FILE
19+
RUN apt install curl -y
20+
RUN curl https://raw.githubusercontent.com/ckan/ckan/`cat /tmp/version`/ckan/config/solr/schema.xml -o $SOLR_SCHEMA_FILE
1921
RUN chmod 644 $SOLR_SCHEMA_FILE
2022

2123
USER solr

images/ckan/2.11/Dockerfile.xloader

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ENV CKAN_DIR=${SRC_DIR}/ckan
111111
ENV DATA_DIR=/srv/app/data
112112
ENV PIP_SRC=${SRC_DIR}
113113
ENV CKAN_SITE_URL=http://localhost:5000
114-
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore xloader
114+
ENV CKAN__PLUGINS envvars datastore xloader
115115

116116
# Install necessary packages to run CKAN
117117
RUN apk add --no-cache \

0 commit comments

Comments
 (0)