Skip to content

Commit eda7061

Browse files
committed
Build Redis 6.0 and 6.2
1 parent 9d24112 commit eda7061

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

clang/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# BUILD redisfab/clang:${CLANG_VER}-${ARCH}-${OSNICK}
22

3+
ARG OSNICK=stretch
34
ARG CLANG_VER=12
45
ARG CMAKE_VER=3.18.3
56
ARG NINJA_VER=1.10.1
67
ARG REDIS_VER=6
78

89
#----------------------------------------------------------------------------------------------
9-
FROM debian:stretch
10+
FROM debian:$OSNICK
1011

12+
ARG OSNICK
1113
ARG CLANG_VER
1214
ARG CMAKE_VER
1315
ARG NINJA_VER
@@ -83,5 +85,7 @@ ADD redis.blacklist /build/
8385

8486
# build sanitizer-enabled redis-server(s)
8587
# `--no-run` because Clang sanitizer requires SYS_PTRACE docker capability, which is not available in docker build
86-
RUN ./readies/bin/getredis --version ${REDIS_VER} --no-run --suffix asan --clang-asan --clang-san-blacklist /build/redis.blacklist
87-
RUN ./readies/bin/getredis --version ${REDIS_VER} --no-run --suffix msan --clang-msan --llvm-dir /opt/llvm-project/build-msan --clang-san-blacklist /build/redis.blacklist
88+
RUN ./readies/bin/getredis --no-run -v6.0 --suffix asan-6.0 --clang-asan --clang-san-blacklist /build/redis.blacklist
89+
RUN ./readies/bin/getredis --no-run -v6.0 --suffix msan-6.0 --clang-msan --llvm-dir /opt/llvm-project/build-msan --clang-san-blacklist /build/redis.blacklist
90+
RUN ./readies/bin/getredis --no-run -v6.2 --suffix asan-6.2 --clang-asan --clang-san-blacklist /build/redis.blacklist
91+
RUN ./readies/bin/getredis --no-run -v6.2 --suffix msan-6.2 --clang-msan --llvm-dir /opt/llvm-project/build-msan --clang-san-blacklist /build/redis.blacklist

clang/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
CLANG_VER ?= 12
3-
OSNICK=strech
3+
OSNICK ?= bullseye
44
ARCH=x64
55
REDIS_VER=6
66

@@ -11,7 +11,7 @@ endif
1111
VIEW=/w
1212

1313
build:
14-
docker build -t $(IMAGE) --build-arg CLANG_VER=$(CLANG_VER) --build-arg REDIS_VER=$(REDIS_VER) .
14+
docker build -t $(IMAGE) --build-arg CLANG_VER=$(CLANG_VER) --build-arg OSNICK=$(OSNICK) --build-arg REDIS_VER=$(REDIS_VER) .
1515

1616
publish:
1717
docker push $(IMAGE)

0 commit comments

Comments
 (0)