2014-08-13 08:52:22 +00:00
|
|
|
DEBUG=0
|
|
|
|
|
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 11:28:11 +00:00
|
|
|
ID=$$(docker run -v $$(pwd)/keys:/docker/keys -d -i -t glenux/debian-repo); \
|
2014-08-13 08:52:22 +00:00
|
|
|
(docker inspect $$ID |sed -n -e 's/.*"IPAddress": "\(.*\)".*/\1/p'); \
|
|
|
|
docker logs -f $$ID
|
2014-08-12 22:34:00 +00:00
|
|
|
|
2014-08-13 11:28:11 +00:00
|
|
|
test:
|
|
|
|
docker run -v $$(pwd)/keys:/docker/keys \
|
|
|
|
--rm=true \
|
|
|
|
-i -t glenux/debian-repo \
|
|
|
|
/bin/bash
|
|
|
|
|