File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM docker.io/golang:1.24
2
+
3
+ RUN apt update && \
4
+ apt install -y git make
5
+
6
+ RUN git clone https://github.com/kcp-dev/kcp /apps/kcp
7
+ WORKDIR /apps/kcp
8
+
9
+ RUN go build -v ./...
10
+
11
+ ENV NO_GORUN=1
12
+
13
+ CMD [ "bash", "-c", "go test -parallel 1 ./test/e2e/... -args --kcp-kubeconfig $KUBECONFIG" ]
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ export IMAGE_TAG=local
22
22
echo " Building container images…"
23
23
ARCHITECTURES=arm64 DRY_RUN=yes ./hack/ci/build-image.sh
24
24
25
+ E2E_TEST_IMAGE=local/kcptester:v1
26
+ buildah build-using-dockerfile \
27
+ --file Dockerfile.tester \
28
+ --tag " $E2E_TEST_IMAGE " \
29
+ --format=docker \
30
+ .
31
+
25
32
# start docker so we can run kind
26
33
start-docker.sh
27
34
@@ -44,6 +51,14 @@ echo "Loading operator image into kind…"
44
51
buildah manifest push --all " $image " " oci-archive:$archive :$image "
45
52
kind load image-archive " $archive " --name " $KIND_CLUSTER_NAME "
46
53
54
+ # load the tester image
55
+ echo " Loading tester image into kind…"
56
+ archive=tester.tar
57
+ buildah push " $E2E_TEST_IMAGE " " oci-archive:$archive :$E2E_TEST_IMAGE "
58
+ kind load image-archive " $archive " --name " $KIND_CLUSTER_NAME "
59
+
60
+ exit 0
61
+
47
62
# deploy the operator
48
63
echo " Deploying operator…"
49
64
kubectl kustomize hack/ci/testdata | kubectl apply --filename -
You can’t perform that action at this time.
0 commit comments