Skip to content

Commit b3aaecb

Browse files
committed
demo: update opae-nlb-demo to use libjson-c4 builder
libjson-c4 is dropped from Debian Unstable so change to use the original copy from the builder. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
1 parent 258ada9 commit b3aaecb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

demo/opae-nlb-demo/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,10 @@ FROM debian:unstable-slim
3131

3232
COPY --from=builder /usr/src/opae/opae-sdk-*/build/bin/nlb* /usr/local/bin/
3333
COPY --from=builder /usr/src/opae/opae-sdk-*/build/lib /usr/local/lib/
34+
COPY --from=builder /usr/lib64/libjson-c.so.4.0.0 /usr/local/lib/
35+
COPY --from=builder /usr/share/licenses/json-c /usr/local/share/package-licenses/json-c
3436
RUN rm -rf /usr/local/lib/python3
3537
RUN ldconfig
3638

37-
RUN echo "deb-src http://deb.debian.org/debian unstable main" >> \
38-
/etc/apt/sources.list.d/deb-src.list && \
39-
apt update && apt install -y libjson-c4 && \
40-
mkdir -p /usr/local/share/package-sources && \
41-
cd /usr/local/share/package-sources && \
42-
apt --download-only source libjson-c4 && cd / && \
43-
rm -v /etc/apt/sources.list.d/deb-src.list && apt clean
44-
4539
COPY test_fpga.sh /usr/local/bin/
4640
ENTRYPOINT ["/usr/local/bin/test_fpga.sh"]

0 commit comments

Comments
 (0)