
Signed-off-by: James Strong <strong.james.e@gmail.com> Signed-off-by: James Strong <strong.james.e@gmail.com>
27 lines
911 B
Makefile
27 lines
911 B
Makefile
|
|
DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
E2E_BASE_IMAGE="registry.k8s.io/ingress-nginx/e2e-test-runner:v20221012-controller-v1.4.0-14-g93df79676@sha256:9ab6a412b0ea6ae77abc80309608976ec15141e146fa91ef4352400cb9051086"
|
|
|
|
image:
|
|
echo "..entered Makefile in /test/e2e-image"
|
|
echo "..calling Make target <<e2e-test-binary>> in /Makefile from inside /test/e2e-image/Makefile"
|
|
make -C $(DIR)/../../ e2e-test-binary
|
|
echo "..done building e2e-test-binary from /test/e2e-image/Makefile"
|
|
|
|
cp $(DIR)/../e2e/e2e.test .
|
|
cp $(DIR)/../e2e/wait-for-nginx.sh .
|
|
cp -R $(DIR)/../../charts .
|
|
|
|
# TODO: avoid manual copy
|
|
cp -R $(DIR)/../../test/e2e/settings/ocsp/* .
|
|
|
|
docker build \
|
|
--build-arg E2E_BASE_IMAGE=$(E2E_BASE_IMAGE) \
|
|
--tag nginx-ingress-controller:e2e .
|
|
|
|
clean:
|
|
rm -rf _cache e2e.test kubectl cluster ginkgo
|
|
docker rmi -f nginx-ingress-controller:e2e || true
|
|
|
|
|
|
.PHONY: image clean
|