-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CKAN_VERSION=2.10.4
BASE_VERSION=${CKAN_VERSION}
build:
docker compose build
web:
docker compose up web
web-build:
docker compose build web
web-build-nc:
docker compose build --no-cache web
web-bash:
docker compose exec web bash
datapusher:
docker compose up datapusher
# container commands
paster:
docker compose exec web paster --plugin=ckan
db-init:
docker compose exec web paster --plugin=ckan db init
db-upgrade:
docker compose exec web paster --plugin=ckan db upgrade
rebuild-index:
docker compose exec web paster --plugin=ckan search-index rebuild -r
issues-init:
docker compose exec web paster --plugin=ckanext-issues issues init_db
# ckan
ckan:
docker build --platform=linux/amd64 --build-arg CKAN_VERSION=${CKAN_VERSION} -t cwradvocacy/ckan:latest -t cwradvocacy/ckan:${BASE_VERSION} contrib/ckan
ckan-publish:
docker push cwradvocacy/ckan:latest
docker push cwradvocacy/ckan:${BASE_VERSION}
# db
db:
docker build --platform=linux/amd64 -t cwradvocacy/ckan-db:latest -t cwradvocacy/ckan-db:${BASE_VERSION} contrib/postgresql
db-publish:
docker push cwradvocacy/ckan-db:latest
docker push cwradvocacy/ckan-db:${BASE_VERSION}
# datapusher
datapusher-build:
docker build --platform=linux/amd64 -t cwradvocacy/ckan-datapusher:latest -t cwradvocacy/ckan-datapusher:${BASE_VERSION} contrib/ckan-datapusher
datapusher-publish:
docker push cwradvocacy/ckan-datapusher:latest
docker push cwradvocacy/ckan-datapusher:${BASE_VERSION}