-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 978 Bytes
/
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
PROJECT=ploneintranet.pagerank
default: devel
# requires prefixing commands with sudo. But you can change that:
# http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo
docker-build:
docker build -t $(PROJECT) .
# re-uses ssh agent
# presupposes your buildout cache is in /var/tmp as configured in .buildout
# also loads your standard .bashrc
docker-run:
docker run -i -t \
--net=host \
-v $(SSH_AUTH_SOCK):/tmp/auth.sock \
-v $(HOME)/.gitconfig:/.gitconfig \
-v /var/tmp:/var/tmp \
-v $(HOME)/.bashrc:/.bashrc \
-v $(HOME)/.buildout:/.buildout \
-e SSH_AUTH_SOCK=/tmp/auth.sock \
-v $(PWD):/app -w /app -u app $(PROJECT)
devel: bin/buildout
bin/buildout -c buildout.cfg
test:
bin/test -s ploneintranet.pagerank
### helper targets ###
bin/buildout: bin/python2.7
# keep these in sync with config/versions.cfg
@bin/pip install setuptools==6.0.2
@bin/python bootstrap.py -v 2.2.1
bin/python2.7:
@virtualenv --clear -p python2.7 .