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
2222echo  " Building container images…" 
2323ARCHITECTURES=arm64 DRY_RUN=yes ./hack/ci/build-image.sh
2424
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+ 
2532#  start docker so we can run kind
2633start-docker.sh
2734
@@ -44,6 +51,14 @@ echo "Loading operator image into kind…"
4451buildah manifest push --all " $image "   " oci-archive:$archive :$image " 
4552kind load image-archive " $archive "   --name " $KIND_CLUSTER_NAME " 
4653
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+ 
4762#  deploy the operator
4863echo  " Deploying operator…" 
4964kubectl kustomize hack/ci/testdata |  kubectl apply --filename -
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments