11 lines
348 B
Makefile
11 lines
348 B
Makefile
IMAGE ?= plugin-docker-buildx:test
|
|
|
|
.PHONY: build test
|
|
|
|
build:
|
|
docker build -t $(IMAGE) .
|
|
|
|
test: build
|
|
docker run --rm -v $(CURDIR):/src:ro,z --entrypoint sh $(IMAGE) /src/test/login_test.sh
|
|
test "$$(docker run --rm -v $(CURDIR)/test/stub-entrypoint.sh:/usr/local/bin/dockerd-entrypoint.sh:ro,z $(IMAGE) a 'b c')" = "plugin-docker-buildx|a|b c"
|