-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (21 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:12 as builder
RUN apt-get update && apt-get install -y sudo git build-essential python3-full pkg-config meson python3-pyelftools python3-configshell-fb libdpdk-dev liburing-dev patchelf
RUN git clone --branch v24.09 https://github.com/spdk/spdk --recursive /src
WORKDIR /src
RUN mkdir /rootfs
RUN python3 -m venv venv
ENV VIRTUAL_ENV /src/venv
ENV PATH "/src/venv/bin:$PATH"
RUN scripts/pkgdep.sh --developer-tools --pmem --rbd --rdma --uring
RUN ./configure --with-raid5f --with-uring --with-rdma --prefix=/rootfs
RUN make
RUN make install
FROM debian:12
RUN sed -i 's/Components: main/Components: main contrib/g' /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get install -y python3-full python3-pip python3-configshell-fb libibverbs1 librdmacm1 liburing2 libfuse3-3 libaio1 dumb-init openssh-server libncurses6
RUN apt-get install -y --no-install-recommends zfsutils-linux && apt-get clean
COPY --from=builder /rootfs/ /tmp/spdk
RUN echo "PYTHONPATH=/usr/lib/python3.11/site-packages" >> /etc/environment
RUN cp -r /tmp/spdk/* /usr/ && rm -rf /tmp/spdk
COPY ./entrypoint-sshd.sh /
RUN mkdir /var/run/sshd