Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redis cli to nightly image #1415

Merged
merged 5 commits into from
May 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ ARG MORE_BUILD_ARGS
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt update && apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev
RUN apt update && apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev curl
WORKDIR /kvrocks

COPY . .
RUN ./x.py build -DENABLE_OPENSSL=ON -DPORTABLE=ON $MORE_BUILD_ARGS

RUN curl -O https://download.redis.io/releases/redis-6.2.7.tar.gz && \
tar -xzvf redis-6.2.7.tar.gz && \
mkdir tools && \
cd redis-6.2.7 && \
make redis-cli && \
mv src/redis-cli /kvrocks/tools/redis-cli

FROM ubuntu:focal

RUN apt update && apt install -y libssl-dev
Expand All @@ -37,6 +44,9 @@ WORKDIR /kvrocks

COPY --from=build /kvrocks/build/kvrocks ./bin/

COPY --from=build /kvrocks/tools/redis-cli ./bin/
ENV PATH="$PATH:/kvrocks/bin"

VOLUME /var/lib/kvrocks

COPY ./LICENSE ./NOTICE ./DISCLAIMER ./
Expand Down