Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu_22.04: install ML dependencies #78

Merged
merged 1 commit into from
Jan 31, 2024
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
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
Loading