Add olegdb container

This commit is contained in:
Christine Dodrill 2015-02-06 14:59:15 -08:00
parent cf5a38433f
commit 4bf0552540
1 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,14 @@
.PHONY: build test
GIT_REV=`git rev-parse HEAD`
.PHONY: build test oleg
build:
docker build -t xena/site .
oleg:
docker run -ditv /home/xena/tmp/oleg/site:/oleg/data --name site-olegdb xena/olegdb
test: build
@echo "http://127.0.0.1:5000"
@echo "press ^C to kill the test server"
docker run -p 5000:5000 --rm -it -e GIT_REV=devel xena/site /bin/bash
docker run -p 5000:5000 --name site-$(GIT_REV) --link site-olegdb:oleg --rm -it -e GIT_REV=$(GIT_REV) xena/site /bin/bash