This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 93f6603a chore(dockerfile): switch compiler to clang (#2737)
93f6603a is described below

commit 93f6603a5cceca622c84ce8e68159f65a3711c8e
Author: Twice <[email protected]>
AuthorDate: Sat Jan 25 18:19:51 2025 +0800

    chore(dockerfile): switch compiler to clang (#2737)
---
 Dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index aa6643f2..6f7be011 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,12 +19,12 @@ FROM debian:bookworm-slim AS build
 
 ARG MORE_BUILD_ARGS
 
-RUN DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && 
apt-get -y --no-install-recommends install git build-essential autoconf cmake 
libtool python3 libssl-dev && apt-get autoremove && apt-get clean
+RUN DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && 
apt-get -y --no-install-recommends install git build-essential autoconf cmake 
libtool python3 libssl-dev clang && apt-get autoremove && apt-get clean
 
 WORKDIR /kvrocks
 
 COPY . .
-RUN ./x.py build -DENABLE_OPENSSL=ON -DPORTABLE=1 -DCMAKE_BUILD_TYPE=Release 
-j $(nproc) $MORE_BUILD_ARGS
+RUN ./x.py build --compiler=clang -DENABLE_OPENSSL=ON -DPORTABLE=1 
-DCMAKE_BUILD_TYPE=Release -j $(nproc) $MORE_BUILD_ARGS
 
 FROM debian:bookworm-slim
 
@@ -43,7 +43,7 @@ VOLUME /var/lib/kvrocks
 
 COPY --from=build /kvrocks/build/kvrocks /bin/
 
-HEALTHCHECK --interval=10s --timeout=1s --start-period=30s --retries=3 \
+HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
     CMD redis-cli -p 6666 PING | grep -E '(PONG|NOAUTH)' || exit 1
 
 COPY ./LICENSE ./NOTICE ./licenses /kvrocks/

Reply via email to