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