From c1df826a579f8d52abb7f7c5a490fec3f7a1c7cb Mon Sep 17 00:00:00 2001 From: Timo Tietavainen Date: Thu, 16 Dec 2021 17:14:11 +0200 Subject: [PATCH] Build new DBAAS image to have latest sdlcli Build DBAAS image 0.5.5 with the latest version of the sdlcli -tool. Update also DBAAAS README file with a short notice about sdlcli -tool. Issue-Id: RIC-113 Signed-off-by: Timo Tietavainen Change-Id: I7ff58b15150cbd30bc8a9c39a4fbaca99e3205ca --- README.md | 20 ++++++++++++++------ container-tag.yaml | 2 +- docker/Dockerfile.redis | 1 + docs/release-notes.rst | 4 ++++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6d2011b..917f488 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,12 @@ Standalone dbaas database is configured to be non-persistent and non-redundant. HA dbaas provides redundancy but it is also configured to be non-persistent. -After dbaas service is installed, environment variables **DBAAS_SERVICE_HOST** -and **DBAAS_SERVICE_PORT** are exposed to application containers. In the case -of HA dbaas deployment environment variables **DBAAS_MASTER_NAME** and -**DBAAS_SERVICE_SENTINEL_PORT** are also exposed to application containers. -SDL library will automatically use these environment variables. +After dbaas service is installed, environment variables **DBAAS_SERVICE_HOST**, +**DBAAS_SERVICE_PORT** and **DBAAS_NODE_COUNT** are exposed to application +containers. In the case of HA dbaas deployment also environment variables +**DBAAS_MASTER_NAME** and **DBAAS_SERVICE_SENTINEL_PORT** are exposed to +application containers. SDL library will automatically use these environment +variables. The service is installed via helm by using dbaas-service chart. Modify the values accordingly before installation (repository location, image name, ..) @@ -51,6 +52,13 @@ values accordingly before installation (repository location, image name, ..) helm install ./dbaas-service ``` +### SDLCLI +There is a pre-installed `sdlcli` tool in DBaaS container. With this tool user +can see statistics of database backend (Redis), check healthiness of DBaaS +database backend, list database keys and get and set values into database. +To get more information about available commands and how to use them, please +check help instructions: `sdlcli --help`. + ### DBaaS test application Test application is installed via helm by using dbaas-test chart. Modify the @@ -90,7 +98,7 @@ The environment variables for database backend should be set: >>printenv DBAAS_SERVICE_HOST=10.108.103.51 DBAAS_SERVICE_PORT=6379 - +DBAAS_NODE_COUNT=1 Go test application using preliminary go SDL-API should be able to perform reads and writes: diff --git a/container-tag.yaml b/container-tag.yaml index c04eea9..5a54527 100644 --- a/container-tag.yaml +++ b/container-tag.yaml @@ -2,4 +2,4 @@ # This file is expected to be in the docker build directory; # can be moved with suitable JJB configuration. --- -tag: '0.5.4' +tag: '0.5.5' diff --git a/docker/Dockerfile.redis b/docker/Dockerfile.redis index 044644c..bb4d8d7 100644 --- a/docker/Dockerfile.redis +++ b/docker/Dockerfile.redis @@ -76,6 +76,7 @@ RUN cd /go/src && \ 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 --update add --upgrade --no-cache \ diff --git a/docs/release-notes.rst b/docs/release-notes.rst index fd3a193..259a7a8 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -30,6 +30,10 @@ This document provides the release notes of the dbaas. Version history --------------- +[0.5.5] - 2021-12-16 + +* Build a new DBAAS Docker image to take the latest version (0.9.0) of the sdlcli -tool in + [0.5.4] - 2021-10-26 * Add sdlcli -tool for troubleshooting SDL and Database problems -- 2.16.6