Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions demo/intelfpga-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ spec:
restartPolicy: Never
containers:
- name: intelfpga-demo-job-1
image: clearlinux-demo-opae:devel
image: intel/opae-nlb-demo:devel
imagePullPolicy: IfNotPresent
command: ["/usr/bin/test_fpga.sh"]
securityContext:
capabilities:
add:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ FROM ${CLEAR_LINUX_BASE} as builder

ARG CLEAR_LINUX_VERSION=

RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}

RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION} && \
swupd bundle-add wget c-basic devpkg-json-c devpkg-util-linux devpkg-hwloc doxygen Sphinx patch
# Fetch dependencies and source code
ARG OPAE_RElEASE=1.3.2-1

RUN swupd bundle-add wget c-basic devpkg-json-c devpkg-util-linux devpkg-hwloc doxygen Sphinx patch && \
mkdir -p /usr/src/opae && \
# workaround for a swupd failure discussed in https://github.com/clearlinux/distribution/issues/831
RUN ldconfig
RUN mkdir -p /usr/src/opae && \
cd /usr/src/opae && \
wget https://github.com/OPAE/opae-sdk/archive/${OPAE_RElEASE}.tar.gz && \
tar xf *.tar.gz
Expand Down Expand Up @@ -51,3 +52,4 @@ COPY --from=builder /usr/src/opae/opae-sdk-*/build/bin/nlb* /usr/bin/
COPY --from=builder /usr/src/opae/opae-sdk-*/build/lib/lib*.so* /usr/lib64/

COPY test_fpga.sh /usr/bin/
ENTRYPOINT ["/usr/bin/test_fpga.sh"]
File renamed without changes.
8 changes: 4 additions & 4 deletions demo/screencast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ screen5()
clear
cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
out "5. Run OPAE workload that uses NLB3 bitstream"
out "Build clearlinux-demo-opae image:"
command "cd demo; ./build-image.sh clearlinux-demo-opae ; cd ../" 15
out "Build opae-nlb-demo image:"
command "cd demo; ./build-image.sh opae-nlb-demo ; cd ../" 15
out "Import image from docker to CRI-O:"
command "docker save clearlinux-demo-opae:devel | sudo podman load"
command "docker save opae-nlb-demo:devel | sudo podman load"
out "Program bitstream that is not wanted by the workload:"
command "sudo /opt/intel/fpga-sw/opae/fpgaconf-wrapper -s0 /srv/intel.com/fpga/9926ab6d6c925a68aabca7d84c545738/d8424dc4a4a3c413f89e433683f9040b.gbs"
out "Check if device is programmed with it:"
command "cat /sys/class/fpga/intel-fpga-dev.0/intel-fpga-port.0/afu_id"
out "Run workload:"
command "kubectl create -f demo/test-fpga-region.yml"
command "kubectl create -f demo/test-fpga-region.yaml"
sleep 2
out "Look at the test output"
command "kubectl logs test-fpga-region"
Expand Down
3 changes: 1 addition & 2 deletions demo/test-fpga-region.yml → demo/test-fpga-region.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ metadata:
spec:
containers:
- name: test-container
image: clearlinux-demo-opae:devel
image: intel/opae-nlb-demo:devel
imagePullPolicy: IfNotPresent
command: ["sh", "/usr/bin/test_fpga.sh"]
securityContext:
capabilities:
add:
Expand Down
2 changes: 1 addition & 1 deletion scripts/set-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if [ $# != 1 ] || [ "$1" = "?" ] || [ "$1" = "--help" ]; then
exit 1
fi

sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/intel-[^ ]*:\)[^ ]*;\1$1;g" $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/intel-[^ ]*:' Makefile deployments)
sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:\)[^ ]*;\1$1;g" $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:' Makefile deployments demo/*fpga*.yaml)