From 02fe82a79f4883a5621bdd7f384a5156c3509a49 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 22 Mar 2016 11:58:16 +0000 Subject: [PATCH] add Makefile for licensing container Signed-off-by: Justin Cormack --- licensing/.gitignore | 1 + licensing/Makefile | 12 ++++++++++++ licensing/license.sh | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 licensing/.gitignore create mode 100644 licensing/Makefile 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 )