diff --git a/licensing/.gitignore b/licensing/.gitignore new file mode 100644 index 000000000..ea1472ec1 --- /dev/null +++ b/licensing/.gitignore @@ -0,0 +1 @@ +output/ diff --git a/licensing/Makefile b/licensing/Makefile new file mode 100644 index 000000000..b360691de --- /dev/null +++ b/licensing/Makefile @@ -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 diff --git a/licensing/license.sh b/licensing/license.sh index 78a147f9c..28f30506c 100755 --- a/licensing/license.sh +++ b/licensing/license.sh @@ -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 )