2019-02-22 14:03:42 +00:00
|
|
|
|
2020-01-04 23:29:49 +00:00
|
|
|
DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
2024-11-05 19:53:44 +00:00
|
|
|
E2E_BASE_IMAGE ?= "registry.k8s.io/ingress-nginx/e2e-test-runner:v20241104-02a3933e@sha256:baf30e414c5657cc71f5bd1db502f0e0ee4ab721b6560340eff214935e96bef0"
|
2020-01-04 23:29:49 +00:00
|
|
|
|
2020-05-31 16:53:57 +00:00
|
|
|
image:
|
2022-05-08 11:27:18 +00:00
|
|
|
echo "..entered Makefile in /test/e2e-image"
|
2022-05-10 08:49:43 +00:00
|
|
|
echo "..calling Make target <<e2e-test-binary>> in /Makefile from inside /test/e2e-image/Makefile"
|
2020-06-27 15:57:00 +00:00
|
|
|
make -C $(DIR)/../../ e2e-test-binary
|
2022-05-08 11:27:18 +00:00
|
|
|
echo "..done building e2e-test-binary from /test/e2e-image/Makefile"
|
2019-02-22 14:03:42 +00:00
|
|
|
|
2020-02-25 12:35:44 +00:00
|
|
|
cp $(DIR)/../e2e/e2e.test .
|
|
|
|
cp $(DIR)/../e2e/wait-for-nginx.sh .
|
|
|
|
cp -R $(DIR)/../../charts .
|
2019-02-22 14:03:42 +00:00
|
|
|
|
2020-04-17 02:34:12 +00:00
|
|
|
# TODO: avoid manual copy
|
|
|
|
cp -R $(DIR)/../../test/e2e/settings/ocsp/* .
|
|
|
|
|
2020-06-02 01:22:32 +00:00
|
|
|
docker build \
|
2022-07-08 16:27:47 +00:00
|
|
|
--build-arg E2E_BASE_IMAGE=$(E2E_BASE_IMAGE) \
|
2020-01-27 00:48:35 +00:00
|
|
|
--tag nginx-ingress-controller:e2e .
|
2019-02-22 14:03:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf _cache e2e.test kubectl cluster ginkgo
|
2019-07-09 13:24:52 +00:00
|
|
|
docker rmi -f nginx-ingress-controller:e2e || true
|
2020-06-27 15:57:00 +00:00
|
|
|
|
|
|
|
|
2022-05-08 11:27:18 +00:00
|
|
|
.PHONY: image clean
|