Name DBAAS container building stage as a build 57/5157/1
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Wed, 25 Nov 2020 22:57:33 +0000 (00:57 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Wed, 25 Nov 2020 22:57:33 +0000 (00:57 +0200)
Add a name 'build' for DBAAS container building stage.
Install also lcov tool to unit test container.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I9851dc55db6f5a11ab35aa840488f7b19d9179fb

docker/Dockerfile.redis

index 3266a75..092e219 100644 (file)
@@ -38,7 +38,8 @@ RUN apt update && \
     libtool \
     make \
     pkg-config \
-    valgrind
+    valgrind \
+    lcov
 
 # Cpputest built-in memory checks generate false positives in valgrind.
 # This is solved by compiling cpputest with memory checking disabled.
@@ -67,7 +68,7 @@ RUN ./autogen.sh && \
     make install
 
 
-FROM redis:5.0.5-alpine3.9
+FROM redis:5.0.5-alpine3.9 as build
 
 RUN apk add curl
 COPY --from=build-env /usr/local/libexec/redismodule/libredismodule.so /usr/local/libexec/redismodule/libredismodule.so