Skip to content

Commit 01b11d9

Browse files
authored
Merge pull request #217 from mythi/opae
demo: rename clearlinux-demo-opae to opae-nlb-demo
2 parents 31fd36c + f596fc5 commit 01b11d9

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

demo/intelfpga-job.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ spec:
1313
restartPolicy: Never
1414
containers:
1515
- name: intelfpga-demo-job-1
16-
image: clearlinux-demo-opae:devel
16+
image: intel/opae-nlb-demo:devel
1717
imagePullPolicy: IfNotPresent
18-
command: ["/usr/bin/test_fpga.sh"]
1918
securityContext:
2019
capabilities:
2120
add:
File renamed without changes.

demo/clearlinux-demo-opae/Dockerfile renamed to demo/opae-nlb-demo/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ FROM ${CLEAR_LINUX_BASE} as builder
1212

1313
ARG CLEAR_LINUX_VERSION=
1414

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

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

5354
COPY test_fpga.sh /usr/bin/
55+
ENTRYPOINT ["/usr/bin/test_fpga.sh"]
File renamed without changes.

demo/screencast.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ screen5()
125125
clear
126126
cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
127127
out "5. Run OPAE workload that uses NLB3 bitstream"
128-
out "Build clearlinux-demo-opae image:"
129-
command "cd demo; ./build-image.sh clearlinux-demo-opae ; cd ../" 15
128+
out "Build opae-nlb-demo image:"
129+
command "cd demo; ./build-image.sh opae-nlb-demo ; cd ../" 15
130130
out "Import image from docker to CRI-O:"
131-
command "docker save clearlinux-demo-opae:devel | sudo podman load"
131+
command "docker save opae-nlb-demo:devel | sudo podman load"
132132
out "Program bitstream that is not wanted by the workload:"
133133
command "sudo /opt/intel/fpga-sw/opae/fpgaconf-wrapper -s0 /srv/intel.com/fpga/9926ab6d6c925a68aabca7d84c545738/d8424dc4a4a3c413f89e433683f9040b.gbs"
134134
out "Check if device is programmed with it:"
135135
command "cat /sys/class/fpga/intel-fpga-dev.0/intel-fpga-port.0/afu_id"
136136
out "Run workload:"
137-
command "kubectl create -f demo/test-fpga-region.yml"
137+
command "kubectl create -f demo/test-fpga-region.yaml"
138138
sleep 2
139139
out "Look at the test output"
140140
command "kubectl logs test-fpga-region"

demo/test-fpga-region.yml renamed to demo/test-fpga-region.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ metadata:
55
spec:
66
containers:
77
- name: test-container
8-
image: clearlinux-demo-opae:devel
8+
image: intel/opae-nlb-demo:devel
99
imagePullPolicy: IfNotPresent
10-
command: ["sh", "/usr/bin/test_fpga.sh"]
1110
securityContext:
1211
capabilities:
1312
add:

scripts/set-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ if [ $# != 1 ] || [ "$1" = "?" ] || [ "$1" = "--help" ]; then
1515
exit 1
1616
fi
1717

18-
sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/intel-[^ ]*:\)[^ ]*;\1$1;g" $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/intel-[^ ]*:' Makefile deployments)
18+
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)

0 commit comments

Comments
 (0)