forked from kubernetes-sigs/lws
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.ci
More file actions
47 lines (40 loc) · 2.17 KB
/
Dockerfile.ci
File metadata and controls
47 lines (40 loc) · 2.17 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
40
41
42
43
44
45
46
47
ARG BUILDER_IMAGE=registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22
ARG BASE_IMAGE=registry.ci.openshift.org/ocp/4.22:base-rhel9
# Build the manager binary
FROM ${BUILDER_IMAGE} AS builder
ARG TARGETOS
ARG TARGETARCH
ARG TARGETPLATFORM
WORKDIR /workspace
COPY . .
ENV GOEXPERIMENT=strictfipsruntime
ENV GOFLAGS="-tags=strictfipsruntime -mod=vendor -a"
RUN make -f Makefile-ocp.mk build-ocp GO_BUILD_ENV='CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}'
FROM --platform=$TARGETPLATFORM ${BASE_IMAGE}
WORKDIR /
COPY --from=builder /workspace/bin/manager .
RUN mkdir /licenses
COPY --from=builder /workspace/LICENSE /licenses/.
USER 65532:65532
LABEL com.redhat.component="Leader Worker Set"
LABEL cpe="cpe:/a:redhat:leader_worker_set:1.0::el9"
LABEL name="leader-worker-set/lws-rhel9"
LABEL release="0.8.0"
LABEL version="0.8.0"
LABEL url="https://github.com/openshift/kubernetes-sigs-lws"
LABEL vendor="Red Hat, Inc."
LABEL description="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL io.k8s.description="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL summary="LeaderWorkerSet: An API for deploying a group of pods as a unit of replication. \
It aims to address common deployment patterns of AI/ML inference workloads, \
especially multi-host inference workloads where the LLM will be sharded \
and run across multiple devices on multiple nodes."
LABEL io.k8s.display-name="Leader Worker Set"
LABEL io.openshift.tags="openshift,operator,leaderworkerset,lws"
ENTRYPOINT ["/manager"]