mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 07:47:49 +00:00
As it includes timestanps in the tarball it does not make a stable hash; use contents of the files instead. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
21 lines
774 B
Makefile
21 lines
774 B
Makefile
# Tag: 8c52d6a837be80b4e0535b5d9e693b604e970f7d
|
|
BINFMT_IMAGE=mobylinux/binfmt@sha256:4f1d647bfdd46cf015f7c7b161687fe9557647b4542245d45f714774446730ed
|
|
|
|
default: config.json
|
|
|
|
EXCLUDE=--exclude .dockerenv --exclude Dockerfile \
|
|
--exclude dev/console --exclude dev/pts --exclude dev/shm \
|
|
--exclude etc/hostname --exclude etc/hosts --exclude etc/mtab --exclude etc/resolv.conf
|
|
|
|
config.json:
|
|
mkdir -p rootfs
|
|
CONTAINER=$$( docker create $(BINFMT_IMAGE) /dev/null ) && \
|
|
docker export $$CONTAINER | tar -xf - -C rootfs $(EXCLUDE) && \
|
|
docker rm $$CONTAINER && \
|
|
../riddler.sh --cap-drop all --read-only -v /proc/sys/fs/binfmt_misc:/binfmt_misc $(BINFMT_IMAGE) /usr/bin/binfmt -dir /etc/binfmt.d/ -mount /binfmt_misc >$@
|
|
|
|
clean:
|
|
rm -rf rootfs config.json
|
|
|
|
.DELETE_ON_ERROR:
|