2015-02-06 22:59:15 +00:00
|
|
|
GIT_REV=`git rev-parse HEAD`
|
|
|
|
|
|
|
|
.PHONY: build test oleg
|
2015-02-06 22:31:15 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
docker build -t xena/site .
|
|
|
|
|
2015-02-06 22:59:15 +00:00
|
|
|
oleg:
|
|
|
|
docker run -ditv /home/xena/tmp/oleg/site:/oleg/data --name site-olegdb xena/olegdb
|
|
|
|
|
2015-02-06 22:31:15 +00:00
|
|
|
test: build
|
|
|
|
@echo "http://127.0.0.1:5000"
|
2015-02-06 22:45:49 +00:00
|
|
|
@echo "press ^C to kill the test server"
|
2015-02-06 22:59:15 +00:00
|
|
|
docker run -p 5000:5000 --name site-$(GIT_REV) --link site-olegdb:oleg --rm -it -e GIT_REV=$(GIT_REV) xena/site /bin/bash
|