-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Balazs Nemeth <bnemeth@redhat.com>
- Loading branch information
Showing
479 changed files
with
112,085 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#/usr/local/lib/python3.9/site-packages/ SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2024 Intel Corporation | ||
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
COPY . /usr/src/ipu-opi-plugin | ||
WORKDIR /usr/src/ipu-opi-plugin | ||
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o bin/ipuplugin cmd/intelvsp/intelvsp.go | ||
|
||
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9 | ||
|
||
COPY --from=builder /usr/src/ipu-opi-plugin/bin/ipuplugin /usr/bin/ | ||
COPY cmd/intelvsp/fxp-net_linux-networking.pkg / | ||
RUN mkdir -p /opt/p4/p4-cp-nws/bin/ | ||
COPY cmd/intelvsp/p4rt-ctl /opt/p4/p4-cp-nws/bin/ | ||
#TODO: Update to newer package, according to release. | ||
COPY cmd/intelvsp/p4runtime-2023.11.0-py3-none-any.whl /opt/p4/p4-cp-nws/bin/ | ||
RUN dnf install -y python3-pip openssh NetworkManager openvswitch iproute | ||
RUN python3 -m pip install --no-cache-dir /opt/p4/p4-cp-nws/bin/p4runtime-2023.11.0-py3-none-any.whl | ||
|
||
WORKDIR / | ||
LABEL io.k8s.display-name="IPU OPI Plugin" | ||
ENV PYTHONUNBUFFERED=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package intelvsp | ||
|
||
import ( | ||
"github.com/bn222/ipu-opi-plugins/ipu-plugin/ipuplugin/cmd" | ||
) | ||
|
||
func main() { | ||
cmd.Execute() | ||
} |
Oops, something went wrong.