Skip to content

Commit

Permalink
Dockerfile changes in order to build ublk
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampadais committed Feb 5, 2024
1 parent e13c0b7 commit 4b73f1c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ RUN zypper -n addrepo --refresh https://download.opensuse.org/repositories/syste
zypper -n addrepo --refresh https://download.opensuse.org/repositories/network:/utilities/SLE_15_SP5/network:utilities.repo && \
zypper --gpg-auto-import-keys ref

RUN zypper -n install autoconf automake libtool gcc-c++

RUN zypper -n install cmake curl git gcc wget xsltproc docbook-xsl-stylesheets && \
rm -rf /var/cache/zypp/*

Expand All @@ -27,6 +29,22 @@ RUN cd /usr/src && \
make; \
make install

# Build ubdsrv
ENV UBD_COMMIT_ID 19d3b2133baf1af8ae3a5fe300c962567fb7b0ce
RUN git clone --depth 1 --branch liburing-2.5 https://github.com/axboe/liburing.git /usr/src/liburing && \
cd /usr/src/liburing && \
./configure --cc=gcc --cxx=g++ && \
make -j$(nproc) && \
make installgit clone https://github.com/Kampadais/ubdsrv.git && \
cd ubdsrv && \
git checkout ${UBD_COMMIT_ID} && \
export LIBURING_CFLAGS="-I/usr/include/liburing" && \
export LIBURING_LIBS="-Lusr/lib/pkgconfig -luring"cd /usr/src && \
ls;autoreconf -i && \
./configure && \
make; \
make install

# Install grpc_health_probe
RUN wget https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.21/grpc_health_probe-linux-${ARCH} -O /usr/local/bin/grpc_health_probe && \
chmod +x /usr/local/bin/grpc_health_probe
Expand Down

0 comments on commit 4b73f1c

Please sign in to comment.