Add olegdb container
This commit is contained in:
parent
cf5a38433f
commit
4bf0552540
9
Makefile
9
Makefile
|
@ -1,9 +1,14 @@
|
||||||
.PHONY: build test
|
GIT_REV=`git rev-parse HEAD`
|
||||||
|
|
||||||
|
.PHONY: build test oleg
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t xena/site .
|
docker build -t xena/site .
|
||||||
|
|
||||||
|
oleg:
|
||||||
|
docker run -ditv /home/xena/tmp/oleg/site:/oleg/data --name site-olegdb xena/olegdb
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
@echo "http://127.0.0.1:5000"
|
@echo "http://127.0.0.1:5000"
|
||||||
@echo "press ^C to kill the test server"
|
@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
|
||||||
|
|
Loading…
Reference in New Issue