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 <timo.tietavainen@nokia.com>
Change-Id: I7ff58b15150cbd30bc8a9c39a4fbaca99e3205ca
non-redundant. HA dbaas provides redundancy but it is also configured to be
non-persistent.
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, ..)
The service is installed via helm by using dbaas-service chart. Modify the
values accordingly before installation (repository location, image name, ..)
helm install ./dbaas-service
```
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
### DBaaS test application
Test application is installed via helm by using dbaas-test chart. Modify the
>>printenv
DBAAS_SERVICE_HOST=10.108.103.51
DBAAS_SERVICE_PORT=6379
>>printenv
DBAAS_SERVICE_HOST=10.108.103.51
DBAAS_SERVICE_PORT=6379
Go test application using preliminary go SDL-API should be able to perform reads and writes:
Go test application using preliminary go SDL-API should be able to perform reads and writes:
# This file is expected to be in the docker build directory;
# can be moved with suitable JJB configuration.
---
# This file is expected to be in the docker build directory;
# can be moved with suitable JJB configuration.
---
cd sdlgo && \
go build -v -o /usr/local/bin/sdlcli cmd/sdlcli/main.go
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 \
FROM redis:5.0.9-alpine3.11 as build
RUN apk --update add --upgrade --no-cache \
Version history
---------------
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
[0.5.4] - 2021-10-26
* Add sdlcli -tool for troubleshooting SDL and Database problems