Skip to content

Commit 84d4001

Browse files
committed
test
Signed-off-by: Boris Glimcher <[email protected]>
1 parent f17330e commit 84d4001

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
FROM docker.io/library/fedora:37 as build
55

66
ARG TAG=v23.01
7+
# Pick an arch that has at least sse 4.2 but does not require newer avx
8+
# See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
9+
ARG ARCH=native
710

811
WORKDIR /root
912
RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-grpcio-tools && dnf clean all
@@ -12,16 +15,8 @@ RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-
1215
RUN git clone https://github.com/spdk/spdk --branch ${TAG} --depth 1 && \
1316
cd spdk && git submodule update --init --depth 1 && scripts/pkgdep.sh --rdma
1417

15-
# Pick an arch that has at least sse 4.2 but does not require newer avx
16-
# See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
17-
1818
# hadolint ignore=DL3003
19-
RUN if [ "$(uname -m)" = "aarch64" ]; then \
20-
ARCH="generic"; \
21-
elif [ "$(uname -m)" = "x86_64" ]; then \
22-
ARCH="x86-64-v2"; \
23-
fi; \
24-
cd spdk && DEPS="no" LDFLAGS=" " ./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
19+
RUN cd spdk && DEPS="no" LDFLAGS=" " ./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
2520
--without-fio --with-raid5f --with-vhost --without-pmdk --without-rbd \
2621
--with-rdma --without-shared --with-iscsi-initiator --without-vtune --with-vfio-user
2722

0 commit comments

Comments
 (0)