-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (23 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM quay.io/centos/centos:stream9
RUN dnf install -y \
rshim minicom python39 lshw mstflint wget unzip expect nfs-utils iproute httpd hwdata \
vsftpd tftp-server dhcp-server iptables hostname tcpdump python3-pexpect iputils pciutils && \
dnf clean all && \
rm -rf /var/cache/* && \
ln -s /usr/bin/pip3.9 /usr/bin/pip && \
ln -s /usr/bin/python3.9 /usr/bin/python
RUN dnf install -y rust cargo python3-pip && \
dnf clean all && \
rm -rf /var/cache/* && \
pip3 install --upgrade pip && \
pip3 install setuptools-rust && \
pip3 install bcrypt && \
pip3 install pyasn1 && \
pip3 install pynacl && \
pip3 install requests && \
pip3 install paramiko>=2.12.0
RUN wget https://www.mellanox.com/downloads/firmware/mlxup/4.26.0/SFX/linux_x64/mlxup
COPY * /
RUN echo "echo 'running rshim'; rshim; sleep infinity" > rshim.sh && chmod +x rshim.sh
ENTRYPOINT /rshim.sh
# sudo podman run --pid host --network host --user 0 --name bf -dit --privileged -v /dev:/dev quay.io/bnemeth/bf