-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (52 loc) · 1.77 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
61
62
63
64
65
66
67
#!/usr/bin/make
#
options =
plonesites = parts/omelette/Products/urban/scripts/config/plonesites.cfg
extras = parts/omelette/Products/urban/scripts/config/extras.py.tmpl
mountpoints = parts/omelette/Products/urban/scripts/config/mount_points.conf
all: run
.PHONY: bootstrap
bootstrap:
virtualenv -p python2 .
./bin/python bootstrap.py
./bin/subproducts.sh
./bin/pip install -r requirements.txt
.PHONY: setup
setup:
virtualenv -p python2 .
./bin/pip install --upgrade pip
./bin/pip install -r requirements.txt
.PHONY: buildout
buildout:
if ! test -f bin/buildout;then make setup;fi
bin/buildout -t 60
if ! test -f var/filestorage/Data.fs;then make standard-config; else bin/buildout ;fi
.PHONY: standard-config
standard-config:
if ! test -f bin/buildout;then make bootstrap;fi
bin/buildout -t 60 -c standard-config.cfg
.PHONY: run
run:
if ! test -f bin/instance1;then make buildout;fi
bin/instance1 fg
.PHONY: cleanall
cleanall:
rm -fr bin/instance1 develop-eggs downloads eggs parts .installed.cfg
.PHONY: libraries
libraries:
./bin/subproducts.sh
bin/templates:
./bin/buildout -t 60 install templates
touch $@
bin/templates_per_site:
./bin/buildout -t 60 install templates
touch $@
mount_points.conf: bin/templates $(mountpoints)
bin/templates -i $(mountpoints) -s /srv/urbanmap/urbanMap/config/pylon_instances.txt > $@
pre_extras: bin/templates_per_site $(extras) /srv/urbanmap/urbanMap/config/pylon_instances.txt
bin/templates_per_site -i $(extras) -d pre_extras -e py -s /srv/urbanmap/urbanMap/config/pylon_instances.txt
plonesites.cfg: bin/templates $(plonesites) pre_extras
bin/templates -i $(plonesites) -s /srv/urbanmap/urbanMap/config/pylon_instances.txt > plonesites.cfg
.PHONY: deploy-local-db
deploy-local-db:
docker stack deploy urban-pg -c docker-compose.yml