-
Notifications
You must be signed in to change notification settings - Fork 8.4k
/
Copy pathMakefile
27 lines (19 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
E2E_BASE_IMAGE ?= "registry.k8s.io/ingress-nginx/e2e-test-runner:v2.0.1@sha256:78c1e675520ae9345789fdaf684ccb335a94938390dc6f9f651dd93164f3a888"
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