demo: rename clearlinux-demo-opae to opae-nlb-demo

opae-nlb-demo name is more descriptive about the content and becomes
base image agnostic.

Also, set ENTRYPOINT similar to what we did with other images
and deployment files.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
Mikko Ylinen 2019-09-04 11:01:44 +03:00
parent 31fd36c047
commit f596fc593f
7 changed files with 13 additions and 13 deletions

View File

@ -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:

View File

@ -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
@ -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"]

View File

@ -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"

View File

@ -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:

View File

@ -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)