mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
add Makefile for licensing container
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
dfd70a1d1d
commit
02fe82a79f
1
licensing/.gitignore
vendored
Normal file
1
licensing/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
output/
|
12
licensing/Makefile
Normal file
12
licensing/Makefile
Normal 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
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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 )
|
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 )
|
apk info | grep -q fuse || ( printf "You must run this script with -v /etc:/etc -v /lib:/lib\n" && exit 1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user