add Makefile for licensing container

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-03-22 11:58:16 +00:00
parent dfd70a1d1d
commit 02fe82a79f
3 changed files with 14 additions and 1 deletions

1
licensing/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
output/

12
licensing/Makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY: license clean run
all: license
license: packages.lua Dockerfile license.sh
docker build -t license .
run: license
rm -rf output
docker run -it -v /etc:/hostetc -v /lib:/lib -v $(PWD)/output:/output license
clean:
rm -rf output

View File

@ -1,5 +1,5 @@
#!/bin/sh
set -x
cat /hostetc/issue | grep -q Moby || ( printf "You must run this script with -v /etc:/hostetc -v /lib:/lib\n" && exit 1 )
apk info | grep -q fuse || ( printf "You must run this script with -v /etc:/etc -v /lib:/lib\n" && exit 1 )