File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,13 @@ Directory layout:
29
29
## Running CKAN using docker-compose
30
30
To start CKAN using docker-compose, simply change into the * compose* directory and run
31
31
``` sh
32
- cd compose/2.9
33
- docker-compose build
34
- docker-compose up
32
+ make start
35
33
```
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
36
39
Check if CKAN was succesfuly started on http://localhost:5000 .
37
40
38
41
### Configuration
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ FROM solr:${SOLR_VERSION:-9}
5
5
EXPOSE 8983
6
6
7
7
ARG CKAN_BRANCH
8
+ RUN echo ${CKAN_BRANCH} | sed 's/\- xloader//g' > /tmp/version
8
9
9
10
ENV SOLR_CONFIG_DIR="/opt/solr/server/solr/configsets"
10
11
ENV SOLR_SCHEMA_FILE="$SOLR_CONFIG_DIR/ckan/conf/managed-schema"
@@ -15,7 +16,8 @@ USER root
15
16
RUN cp -R $SOLR_CONFIG_DIR/_default $SOLR_CONFIG_DIR/ckan
16
17
17
18
# 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
19
21
RUN chmod 644 $SOLR_SCHEMA_FILE
20
22
21
23
USER solr
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ ENV CKAN_DIR=${SRC_DIR}/ckan
111
111
ENV DATA_DIR=/srv/app/data
112
112
ENV PIP_SRC=${SRC_DIR}
113
113
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
115
115
116
116
# Install necessary packages to run CKAN
117
117
RUN apk add --no-cache \
You can’t perform that action at this time.
0 commit comments