Skip to content

Commit 3f3bfbd

Browse files
committed
WIP create cannier image
Signed-off-by: Daniel Hiller <[email protected]>
1 parent 2a87d1a commit 3f3bfbd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

images/cannier/Containerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM quay.io/kubevirtci/golang:v20250211-4e3c019 as builder
2+
ENV GOPROXY=https://proxy.golang.org|direct \
3+
GOFLAGS="-mod=vendor -ldflags=-extldflags=\"-static\"" \
4+
CGO_ENABLED=0 \
5+
GOOS=linux \
6+
GOARCH=amd64
7+
ENV GIMME_GO_VERSION=1.23.4
8+
RUN mkdir kubevirt && \
9+
cd kubevirt && \
10+
git clone https://github.com/dhiller/project-infra.git && \
11+
cd project-infra && \
12+
git checkout b88bb00a73514123b2ce3ed740b47c3ae8b054b7 && \
13+
/usr/local/bin/runner.sh /bin/sh -ce "env GOPROXY=off go build -tags netgo -o /go/bin/cannier ./robots/cmd/cannier"
14+
RUN dnf install -y \
15+
ripgrep
16+
FROM gcr.io/k8s-prow/git:v20240729-4f255edb07
17+
COPY --from=builder /go/bin/cannier /usr/bin/cannier
18+
COPY --from=builder /usr/bin/rg /usr/bin/rg
19+
ENTRYPOINT ["/usr/bin/cannier"]

0 commit comments

Comments
 (0)