mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-23 07:56:01 +00:00
7805f2c942
Addressing comments - 1a. added flag to `sriov.sh` to indicate bind to vfio-pci 1b. systemd unit sets up two pools 1 per mode 2a. updated `sriov-conf.yaml` to use the two pools 3a. included network examples for both resource pools 3b. included pod examples for both resource pools Signed-off-by: Saikrishna Edupuganti <saikrishna.edupuganti@intel.com>
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
# Build multus plugin
|
|
FROM golang:1.10 AS multus
|
|
RUN git clone -q --depth 1 https://github.com/intel/multus-cni.git /go/src/github.com/intel/multus-cni
|
|
WORKDIR /go/src/github.com/intel/multus-cni
|
|
RUN ./build
|
|
|
|
# Build sriov plugin
|
|
FROM golang:1.10 AS sriov-cni
|
|
RUN git clone -q -b dev/k8s-deviceid-model https://github.com/Intel-Corp/sriov-cni.git /go/src/github.com/intel-corp/sriov-cni
|
|
WORKDIR /go/src/github.com/intel-corp/sriov-cni
|
|
RUN ./build
|
|
|
|
# Build sriov device plugin
|
|
FROM golang:1.10 AS sriov-dp
|
|
RUN git clone -q https://github.com/intel/sriov-network-device-plugin.git /go/src/github.com/intel/sriov-network-device-plugin
|
|
WORKDIR /go/src/github.com/intel/sriov-network-device-plugin
|
|
RUN make
|
|
|
|
# Build vfioveth plugin
|
|
FROM busybox as vfioveth
|
|
RUN wget -O /bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
|
COPY cni/vfioveth /bin/vfioveth
|
|
RUN chmod +x /bin/vfioveth /bin/jq
|
|
|
|
# Final image
|
|
FROM centos/systemd
|
|
WORKDIR /tmp/cni/bin
|
|
COPY --from=multus /go/src/github.com/intel/multus-cni/bin/multus .
|
|
COPY --from=sriov-cni /go/src/github.com/intel-corp/sriov-cni/bin/sriov .
|
|
COPY --from=vfioveth /bin/vfioveth .
|
|
COPY --from=vfioveth /bin/jq .
|
|
WORKDIR /usr/bin
|
|
COPY --from=sriov-dp /go/src/github.com/intel/sriov-network-device-plugin/build/sriovdp .
|