We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a926047 commit 0d8d7faCopy full SHA for 0d8d7fa
cluster-provision/centos9/Dockerfile
@@ -1,5 +1,13 @@
1
+# Build the vmcli Go CLI
2
+FROM docker.io/library/golang:1.22 AS vmcli-builder
3
-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
11
12
ARG centos_version
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 /
0 commit comments