workable
This commit is contained in:
parent
b476a3e2cf
commit
e28d5291c3
|
@ -4,6 +4,7 @@ FROM docker.io/nvidia/cuda:11.3.1-devel-ubuntu20.04
|
||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
&& sed -i "s@http://.*archive.ubuntu.com@http://192.168.16.201/mirrors@g" /etc/apt/sources.list \
|
&& sed -i "s@http://.*archive.ubuntu.com@http://192.168.16.201/mirrors@g" /etc/apt/sources.list \
|
||||||
&& apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
|
&& apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
|
||||||
|
-o Acquire::BrokenProxy="true" -o Acquire::http::No-Cache="true" -o Acquire::http::Pipeline-Depth="0" \
|
||||||
build-essential cmake openssh-server git-all sudo ssh sshpass pciutils \
|
build-essential cmake openssh-server git-all sudo ssh sshpass pciutils \
|
||||||
python3 python3-dev python3-pip curl ca-certificates vim zsh tmux bash \
|
python3 python3-dev python3-pip curl ca-certificates vim zsh tmux bash \
|
||||||
inetutils-ping less wget dialog net-tools dnsutils netcat traceroute \
|
inetutils-ping less wget dialog net-tools dnsutils netcat traceroute \
|
||||||
|
@ -11,9 +12,9 @@ RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
&& rm -rf /var/lib/apt/list/*
|
&& rm -rf /var/lib/apt/list/*
|
||||||
|
|
||||||
# mlnx ofed
|
# mlnx ofed
|
||||||
RUN cd /tmp && wget http://192.168.16.118/MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu22.04-x86_64.tgz \
|
RUN cd /tmp && wget http://192.168.16.118/MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu20.04-x86_64.tgz \
|
||||||
&& tar -xf MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu22.04-x86_64.tgz \
|
&& tar -xf MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu20.04-x86_64.tgz \
|
||||||
&& cd MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu22.04-x86_64 \
|
&& cd MLNX_OFED_LINUX-5.8-2.0.3.0-ubuntu20.04-x86_64 \
|
||||||
&& ./mlnxofedinstall --skip-unsupported-devices-check -q \
|
&& ./mlnxofedinstall --skip-unsupported-devices-check -q \
|
||||||
&& rm -rf /tmp/MLNX_OFED_LINUX-5.8-*
|
&& rm -rf /tmp/MLNX_OFED_LINUX-5.8-*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user