-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Makefile
60 lines (44 loc) · 1.93 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
55
56
57
58
59
60
# Set variables to pass
DOCKER_HOST := $(DOCKER_HOST)
DOCKER_HOST_IP := `docker run --net=host codenvy/che-ip:nightly`
auto-up:
# bring up the services with proper environment variables
unset DOCKERHOST; \
export DOCKERHOST=$(DOCKER_HOST); \
echo Docker daemon is running at the following address $$DOCKERHOST; \
unset GEONODE_LB_HOST_IP; \
export GEONODE_LB_HOST_IP=$(DOCKER_HOST_IP); \
echo GeoNode will be available at the following address http://$$GEONODE_LB_HOST_IP; \
echo If you want to run it on localhost then remember to add this line "localhost $$GEONODE_LB_HOST_IP" to /etc/hosts; \
docker-compose up -d --build
up:
docker-compose up -d
build:
docker-compose build django
docker-compose build celery
sync: up
# set up the database tables
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
reset: down up wait sync
hardreset: pull build reset
develop: pull build up sync