1
1
FROM registry.suse.com/bci/bci-base:15.5
2
2
3
- ARG DAPPER_HOST_ARCH=amd64
3
+ ARG DAPPER_HOST_ARCH
4
4
ARG http_proxy
5
5
ARG https_proxy
6
6
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
@@ -21,7 +21,7 @@ RUN zypper -n addrepo --refresh https://download.opensuse.org/repositories/syste
21
21
zypper -n addrepo --refresh https://download.opensuse.org/repositories/devel:languages:python:backports/SLE_15/devel:languages:python:backports.repo && \
22
22
zypper --gpg-auto-import-keys ref
23
23
24
- RUN zypper -n install cmake curl wget git gcc tar xsltproc docbook-xsl-stylesheets python3 meson ninja python3-pip \
24
+ RUN zypper -n install cmake curl wget git gcc unzip tar xsltproc docbook-xsl-stylesheets python3 meson ninja python3-pip \
25
25
e2fsprogs xfsprogs util-linux-systemd python3-pyelftools libcmocka-devel device-mapper
26
26
27
27
# Install Go & tools
@@ -30,8 +30,9 @@ ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm64=arm64 GOLANG_ARCH_s390x=s390x GOLA
30
30
RUN wget -O - https://storage.googleapis.com/golang/go1.22.2.linux-${!GOLANG_ARCH}.tar.gz | tar -xzf - -C /usr/local
31
31
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
32
32
33
-
34
33
# Build SPDK
34
+ ENV HUGEMEM=1024
35
+ RUN echo "vm.nr_hugepages=$((HUGEMEM/2))" >> /etc/sysctl.conf
35
36
ENV SPDK_DIR /usr/src/spdk
36
37
ENV SPDK_COMMIT_ID 62a8f8a9c5ac99f6e63d654f6fc6c427c5d8815b
37
38
RUN git clone https://github.com/longhorn/spdk.git ${SPDK_DIR} --recursive && \
@@ -64,16 +65,18 @@ RUN cd /usr/src && \
64
65
make && \
65
66
make install
66
67
67
- # Build nvme-cli 2.5
68
+ # Build nvme-cli 2.7.1
68
69
ENV NVME_CLI_DIR /usr/src/nvme-cli
69
- ENV NVME_CLI_COMMIT_ID d6c07e0de9be777009ebb9ab7475bee1ae3e0e95
70
+ ENV NVME_CLI_COMMIT_ID dcdad6f5d70ffb2fa151f229db048180671eb1fe
70
71
RUN git clone https://github.com/linux-nvme/nvme-cli.git ${NVME_CLI_DIR} && \
71
72
cd ${NVME_CLI_DIR} && \
72
73
git checkout ${NVME_CLI_COMMIT_ID} && \
73
74
meson setup --force-fallback-for=libnvme .build && \
74
75
meson compile -C .build && \
75
76
meson install -C .build
76
77
78
+ RUN ldconfig
79
+
77
80
VOLUME /tmp
78
81
ENV TMPDIR /tmp
79
82
ENTRYPOINT ["./scripts/entry"]
0 commit comments