mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
simplify vendor tar
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
91fbb9c245
commit
206dfe0950
@ -3,7 +3,7 @@ all: usr/bin/diagnostics-server
|
|||||||
DEPS=Dockerfile $(wildcard *.go)
|
DEPS=Dockerfile $(wildcard *.go)
|
||||||
|
|
||||||
usr/bin/diagnostics-server: $(DEPS) ../vendor/manifest
|
usr/bin/diagnostics-server: $(DEPS) ../vendor/manifest
|
||||||
tar cf - $(DEPS) -C .. $(shell cd .. && find vendor) | docker build -t diagnostics-server:build -
|
tar cf - $(DEPS) -C .. vendor | docker build -t diagnostics-server:build -
|
||||||
docker run --rm --net=none diagnostics-server:build | tar xf - -C usr/bin
|
docker run --rm --net=none diagnostics-server:build | tar xf - -C usr/bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -3,7 +3,7 @@ all: usr/bin/slirp-proxy sbin/proxy-vsockd
|
|||||||
DEPS=Dockerfile $(wildcard *.go libproxy/*.go)
|
DEPS=Dockerfile $(wildcard *.go libproxy/*.go)
|
||||||
|
|
||||||
proxy: $(DEPS) ../vendor/manifest
|
proxy: $(DEPS) ../vendor/manifest
|
||||||
tar cf - $(DEPS) -C .. $(shell cd .. && find vendor) | docker build -t proxy:build -
|
tar cf - $(DEPS) -C .. vendor | docker build -t proxy:build -
|
||||||
docker run --rm --net=none proxy:build | tar xf -
|
docker run --rm --net=none proxy:build | tar xf -
|
||||||
|
|
||||||
usr/bin/slirp-proxy: proxy
|
usr/bin/slirp-proxy: proxy
|
||||||
|
@ -4,7 +4,7 @@ DEPS=Dockerfile $(wildcard *.go)
|
|||||||
|
|
||||||
vsudd: $(DEPS) ../vendor/manifest
|
vsudd: $(DEPS) ../vendor/manifest
|
||||||
mkdir -p sbin
|
mkdir -p sbin
|
||||||
tar cf - $(DEPS) -C .. $(shell cd .. && find vendor) | docker build -t vsudd:build -
|
tar cf - $(DEPS) -C .. vendor | docker build -t vsudd:build -
|
||||||
docker run --rm --net=none vsudd:build | tar xf - -C sbin
|
docker run --rm --net=none vsudd:build | tar xf - -C sbin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user