forked from GFDRR/geonode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.69 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
up:
# bring up the services
docker-compose up -d
build:
docker pull python:2.7
docker build -t camptocamp/geonode_django:latest .
docker build -t camptocamp/geonode_django:`date +%Y%m%d%H%M%S` .
sync: up
docker-compose exec django django-admin.py makemigrations --noinput
docker-compose exec django django-admin.py migrate account --noinput
docker-compose exec django django-admin.py migrate --noinput
docker-compose exec django django-admin.py loaddata sample_admin
docker-compose exec django django-admin.py loaddata geonode/base/fixtures/default_oauth_apps_docker.json
docker-compose exec django django-admin.py loaddata geonode/base/fixtures/initial_data.json
migrate:
django-admin.py migrate --noinput
migrate_setup: migrate
django-admin.py loaddata sample_admin
wait:
sleep 5
logs:
docker-compose logs --follow
down:
docker-compose down
pull:
docker-compose pull
smoketest: up
docker-compose exec django python manage.py test geonode.tests.smoke --noinput --nocapture --detailed-errors --verbosity=1 --failfast
unittest: up
docker-compose exec django python manage.py test geonode.people.tests geonode.base.tests geonode.layers.tests geonode.maps.tests geonode.proxy.tests geonode.security.tests geonode.social.tests geonode.catalogue.tests geonode.documents.tests geonode.api.tests geonode.groups.tests geonode.services.tests geonode.geoserver.tests geonode.upload.tests geonode.tasks.tests --noinput --failfast
test: smoketest unittest
clear:
docker volume rm labsgeonode_elasticsearch_data labsgeonode_geoserver_data labsgeonode_geoserver_datadir labsgeonode_postgresql_data labsgeonode_rabbitmq_data
reset: down clear up wait sync
#~ hardreset: pull build reset
hardreset: build reset