File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
cluster-provision/centos9 Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Build the vmcli Go CLI
2
+ FROM docker.io/library/golang:1.22 AS vmcli-builder
1
3
2
- FROM quay.io/kubevirtci/fedora@sha256:e3a6087f62f288571db14defb7e0e10ad7fe6f973f567b0488d3aac5e927035a
4
+ WORKDIR /app
5
+
6
+ COPY vmcli/ ./
7
+ RUN CGO_ENABLED=0 GOOS=linux go build -o ./_bin/vmcli ./cmd/cli
8
+
9
+ # Prepare the VM runner
10
+ FROM quay.io/kubevirtci/fedora@sha256:e3a6087f62f288571db14defb7e0e10ad7fe6f973f567b0488d3aac5e927035a AS runner
3
11
4
12
ARG centos_version
5
13
@@ -31,3 +39,4 @@ RUN curl -L -o /initrd.img http://mirror.stream.centos.org/9-stream/BaseOS/x86_6
31
39
RUN curl -L -o /vmlinuz http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/images/pxeboot/vmlinuz
32
40
33
41
COPY scripts/* /
42
+ COPY --from=vmcli-builder /app/_bin/vmcli /
You can’t perform that action at this time.
0 commit comments