File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11# BUILD redisfab/clang:${CLANG_VER}-${ARCH}-${OSNICK}
22
3+ ARG OSNICK=stretch
34ARG CLANG_VER=12
45ARG CMAKE_VER=3.18.3
56ARG NINJA_VER=1.10.1
67ARG REDIS_VER=6
78
89# ----------------------------------------------------------------------------------------------
9- FROM debian:stretch
10+ FROM debian:$OSNICK
1011
12+ ARG OSNICK
1113ARG CLANG_VER
1214ARG CMAKE_VER
1315ARG 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
Original file line number Diff line number Diff line change 11
22CLANG_VER ?= 12
3- OSNICK =strech
3+ OSNICK ?= bullseye
44ARCH =x64
55REDIS_VER =6
66
1111VIEW =/w
1212
1313build :
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
1616publish :
1717 docker push $(IMAGE )
You can’t perform that action at this time.
0 commit comments