2014-08-13 08:52:22 +00:00
|
|
|
DEBUG=0
|
|
|
|
|
|
|
|
ifeq ($(DEBUG),0)
|
|
|
|
RUNCMD=
|
|
|
|
else
|
|
|
|
RUNCMD=-i /bin/bash
|
|
|
|
endif
|
2014-08-12 21:04:26 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
docker build -t glenux/debian-repo .
|
|
|
|
|
2014-08-12 22:34:00 +00:00
|
|
|
run:
|
2014-08-13 08:52:22 +00:00
|
|
|
ID=$$(docker run -v $$(pwd)/keys:/docker/keys -d -t glenux/debian-repo $(RUNCMD)); \
|
|
|
|
(docker inspect $$ID |sed -n -e 's/.*"IPAddress": "\(.*\)".*/\1/p'); \
|
|
|
|
docker logs -f $$ID
|
2014-08-12 22:34:00 +00:00
|
|
|
|