Skip to content

Commit

Permalink
ubuntu_22.04: install ML dependencies
Browse files Browse the repository at this point in the history
For machine learning support, install ONNX Runtime library
(https://github.com/microsoft/onnxruntime), and onnx and numpy python
packages.

Signed-off-by: Lifang Zhang <lifang.zhang@nokia.com>
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
  • Loading branch information
JereLeppanen committed Jan 30, 2024
1 parent 3fd3c84 commit 2fdd1ee
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions ubuntu_22.04-arm64-native/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM ubuntu:22.04
ENV DPDK_VERSION=v22.11.3 \
IPSEC_MB_VERSION=SECLIB-IPSEC-2022.12.13 \
XDP_VERSION=v1.2.3 \
AARCH64_CRYPTOLIB_TAG=2445f0e
AARCH64_CRYPTOLIB_TAG=2445f0e \
ONNX_VERSION=1.16.3

RUN apt-get update

Expand Down Expand Up @@ -47,11 +48,20 @@ RUN apt-get install -yy \
net-tools \
ninja-build \
python3-pip \
sudo
sudo \
wget

RUN pip3 install \
numpy \
onnx \
pyelftools

RUN cd /usr/local && \
wget -O - \
https://github.com/microsoft/onnxruntime/releases/download/v${ONNX_VERSION}/onnxruntime-linux-aarch64-${ONNX_VERSION}.tgz | \
tar zx --strip-components=1 --wildcards "*/include" "*/lib" && \
ldconfig

RUN cd $HOME && \
git clone http://dpdk.org/git/dpdk-stable --branch ${DPDK_VERSION} --depth 1 ./dpdk && \
cd dpdk && \
Expand Down
14 changes: 12 additions & 2 deletions ubuntu_22.04-x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM ubuntu:22.04

ENV DPDK_VERSION=v22.11.3 \
XDP_VERSION=v1.2.3
XDP_VERSION=v1.2.3 \
ONNX_VERSION=1.16.3

RUN apt-get update

Expand Down Expand Up @@ -44,11 +45,20 @@ RUN apt-get install -yy \
net-tools \
ninja-build \
python3-pip \
sudo
sudo \
wget

RUN pip3 install \
numpy \
onnx \
pyelftools

RUN cd /usr/local && \
wget -O - \
https://github.com/microsoft/onnxruntime/releases/download/v${ONNX_VERSION}/onnxruntime-linux-x64-${ONNX_VERSION}.tgz | \
tar zx --strip-components=1 --wildcards "*/include" "*/lib" && \
ldconfig

RUN cd $HOME && \
git clone http://dpdk.org/git/dpdk-stable --branch ${DPDK_VERSION} --depth 1 ./dpdk && \
cd dpdk && \
Expand Down

0 comments on commit 2fdd1ee

Please sign in to comment.