Skip to content

Commit 8fc4a3e

Browse files
authored
Merge pull request #46 from CodeForAfrica/chore/upgrade-ckan-2.10.8
Upgrade to ckan 2.10.8
2 parents 1db1ace + 75473f8 commit 8fc4a3e

File tree

5 files changed

+40
-26
lines changed

5 files changed

+40
-26
lines changed

.env.tmpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ CKAN_RECAPTCHA_PRIVATE_KEY=""
4343
# request timeout in X seconds
4444
CKAN_REQUESTS_TIMEOUT=30
4545
CKAN_RESOURCE_PROXY_TIMEOUT=30
46+
47+
# Solr
48+
CKAN_SOLR_VERSION=2.10-solr9
49+
CKAN_SOLR_URL=http://solr:8983/solr/ckan
50+
TEST_CKAN_SOLR_URL=http://solr:8983/solr/ckan
51+
52+
# Datapusher
53+
DATAPUSHER_VERSION=0.0.21
54+
CKAN_DATAPUSHER_URL=http://datapusher:8800
55+
CKAN__DATAPUSHER__CALLBACK_URL_BASE=http://ckan:5000
56+
DATAPUSHER_REWRITE_RESOURCES=True
57+
DATAPUSHER_REWRITE_URL=http://ckan:5000

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# FROM ckan/ckan-base:2.10.4
2-
FROM ckan/ckan-base:2.10.7-py3.10
1+
FROM ckan/ckan-base:2.10.8-py3.10
32
# Install any extensions needed by your CKAN instance
43
# - Make sure to add the plugins to CKAN__PLUGINS in the .env file
54
# - Also make sure all provide all extra configuration options, either by:

Makefile

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,49 @@
1+
include $(PWD)/.env
2+
13
build:
2-
docker-compose build
4+
docker compose build
5+
6+
up:
7+
docker compose up
38

49
build-web:
5-
docker-compose build web
10+
docker compose build web
611

712
web:
8-
docker-compose up web
9-
bash:
10-
docker-compose exec web bash
13+
docker compose up web
1114

12-
13-
paster:
14-
docker-compose exec web paster --plugin=ckan
15+
bash:
16+
docker compose exec web bash
1517

1618
db-init:
17-
docker-compose exec web paster --plugin=ckan db init
19+
docker compose exec web ckan -c ckan.ini db init
20+
1821
db-upgrade:
19-
docker-compose exec web paster --plugin=ckan db upgrade
22+
docker compose exec web ckan -c ckan.ini db upgrade
23+
2024
rebuild-index:
21-
docker-compose exec web paster --plugin=ckan search-index rebuild -r
22-
issues-init:
23-
docker-compose exec web paster --plugin=ckanext-issues issues init_db
25+
docker compose exec web ckan -c ckan.ini search-index rebuild
2426

27+
issues-init:
28+
docker compose exec web ckan -c ckan.ini issues init_db
2529

2630
ckan:
27-
docker build --no-cache --build-arg CKAN_VERSION=2.9.0 -t codeforafrica/ckan:latest -t codeforafrica/ckan:2.9.0 contrib/ckan
31+
docker buildx build --platform linux/amd64 --no-cache --build-arg CKAN_VERSION=$(CKAN_VERSION) --tag codeforafrica/ckan:latest --tag codeforafrica/ckan:$(CKAN_VERSION) .
2832

2933
ckan-publish:
3034
docker push codeforafrica/ckan:latest
31-
docker push codeforafrica/ckan:2.9.0
35+
docker push codeforafrica/ckan:$(CKAN_VERSION)
3236

3337
solr:
34-
docker build --no-cache --build-arg CKAN_VERSION=2.9.0 -t codeforafrica/ckan-solr:latest -t codeforafrica/ckan-solr:2.9.0 contrib/solr
38+
docker buildx build --platform linux/amd64 --no-cache --build-arg CKAN_VERSION=$(CKAN_VERSION) --tag codeforafrica/ckan-solr:latest --tag codeforafrica/ckan-solr:$(CKAN_SOLR_VERSION) contrib/solr
3539

3640
solr-publish:
3741
docker push codeforafrica/ckan-solr:latest
38-
docker push codeforafrica/ckan-solr:2.8.11
39-
42+
docker push codeforafrica/ckan-solr:$(CKAN_SOLR_VERSION)
4043

4144
datapusher:
42-
docker build -t codeforafrica/ckan-datapusher:latest -t codeforafrica/ckan-datapusher:0.0.15 contrib/ckan-datapusher
45+
docker buildx build --platform linux/amd64 --tag codeforafrica/ckan-datapusher:latest --tag codeforafrica/ckan-datapusher:$(DATAPUSHER_VERSION) contrib/ckan-datapusher
4346

4447
datapusher-publish:
4548
docker push codeforafrica/ckan-datapusher:latest
46-
docker push codeforafrica/ckan-datapusher:0.0.15
49+
docker push codeforafrica/ckan-datapusher:$(DATAPUSHER_VERSION)

contrib/ckan/docker-entrypoint.d/openafrica_ckan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fi
1515
#Auth settings
1616
ckan config-tool ${CKAN_INI} -s app:main -e ckan.auth.create_user_via_web=true
1717
ckan config-tool ${CKAN_INI} -s app:main -e ckan.auth.public_user_details=true
18+
ckan config-tool ${CKAN_INI} -s app:main -e ckan.auth.create_default_api_keys=true
1819

1920
#Auth settings, limit actions to sysadmin users
2021
ckan config-tool ${CKAN_INI} -s app:main -e ckan.auth.user_create_organizations=false

docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,23 @@ services:
2727
build:
2828
context: .
2929
dockerfile: Dockerfile
30+
platform: linux/amd64
3031
depends_on:
3132
- solr
3233
- redis
3334
ports:
3435
- "5050:5000"
35-
volumes:
36-
- ./contrib/ckan/ckan.ini:/srv/app/ckan.ini
3736
env_file:
3837
- .env
3938

4039
datapusher:
4140
container_name: datapusher
42-
image: ckan/ckan-base-datapusher:0.0.20
41+
image: ckan/ckan-base-datapusher:${DATAPUSHER_VERSION}
4342
ports:
4443
- "8800:8800"
4544

4645
solr:
47-
image: ckan/ckan-solr:2.10-solr8
46+
image: ckan/ckan-solr:${CKAN_SOLR_VERSION}
4847
ports:
4948
- "8983:8983"
5049
volumes:

0 commit comments

Comments
 (0)