Add sdlcli -tool for troubleshooting SDL and Database problems
[ric-plt/dbaas.git] / docker / Dockerfile.redis
index 7650919..044644c 100644 (file)
@@ -70,9 +70,21 @@ RUN ./autogen.sh && \
     make test && \
     make install
 
+# Build sdlcli -tool
+RUN cd /go/src && \
+    git clone "https://gerrit.o-ran-sc.org/r/ric-plt/sdlgo" && \
+    cd sdlgo && \
+    go build -v -o /usr/local/bin/sdlcli cmd/sdlcli/main.go
 
 FROM redis:5.0.9-alpine3.11 as build
 
-RUN apk add curl
+RUN apk --update add --upgrade --no-cache \
+    apk-tools \
+    openssl \
+    ssl_client \
+    musl-utils \
+    busybox
+
 COPY --from=build-env /usr/local/libexec/redismodule/libredismodule.so /usr/local/libexec/redismodule/libredismodule.so
+COPY --from=build-env /usr/local/bin/sdlcli /usr/local/bin/
 WORKDIR /data