-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.konflux
More file actions
39 lines (30 loc) · 1.69 KB
/
Dockerfile.konflux
File metadata and controls
39 lines (30 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Build stage
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:22c5f0e0dfa133c7bd9d004ce2fbb01075ec88001bc7404bb4fe72ea4037bde1 AS builder
WORKDIR /opt/app-root/src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG VERSION=dev
ARG DEFAULT_IMAGE=quay.io/opendatahub/odh-rhaii-cluster-validator:latest
RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -ldflags "-X main.version=${VERSION} -X main.defaultImage=${DEFAULT_IMAGE}" -o /opt/app-root/rhaii-validator ./cmd/agent/
# Runtime stage
FROM registry.access.redhat.com/ubi9/ubi@sha256:1fc04e873cb3f3c8d1211729a794716e50826f650ea88b97a4ff57f601db77a8
LABEL name="rhoai/odh-rhaii-cluster-validator-rhel9" \
com.redhat.component="odh-rhaii-cluster-validator-rhel9" \
summary="RHAII Cluster Validator" \
description="Preflight validation probe for xKS clusters - verifies GPU availability, RDMA connectivity, network bandwidth, required CRDs, and inference readiness before AI workload deployment" \
maintainer="Red Hat LLM-D Team" \
io.k8s.display-name="RHAII Cluster Validator" \
io.k8s.description="Preflight validation probe for xKS clusters - verifies GPU availability, RDMA connectivity, network bandwidth, required CRDs, and inference readiness before AI workload deployment"
# Install tools needed by the agent
RUN dnf install -y \
util-linux \
pciutils \
infiniband-diags \
libibverbs-utils \
&& dnf clean all
COPY --from=builder /opt/app-root/rhaii-validator /usr/local/bin/rhaii-validator
# TODO: evaluate if non-root (USER 1001) is viable — topology checks and
# ib_write_bw may require root for device access when running in 'run' mode.
USER 0
ENTRYPOINT ["rhaii-validator"]