diff options
author | Bin Yang <bin.yang@windriver.com> | 2022-03-21 22:40:51 +0800 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2022-03-22 14:31:13 +0800 |
commit | de7df2bb51ecd068d3eae6cf314b20c744e96927 (patch) | |
tree | b55034272a7d683dba1a95c504c6594d970645d3 /windriver/README.md | |
parent | 3bd3e44e2c9533b96f6f6664f9d6ed2150515955 (diff) |
memcached container as sidecar1.5.7
To fix the dependency on memcached which depends on the GPLv3 licensed gdbm indirectly,
Use sidecar to integrate memcached from dockerhub
Add docker-composer scripts to support local test
Issue-ID: MULTICLOUD-1457
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I55a156c0af158535dccfa87e7b9603e47be4d9c1
Diffstat (limited to 'windriver/README.md')
-rw-r--r-- | windriver/README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/windriver/README.md b/windriver/README.md index d3bcc195..f6dcf8ad 100644 --- a/windriver/README.md +++ b/windriver/README.md @@ -13,3 +13,26 @@ # limitations under the License. # Micro service of MultiCloud plugin for Wind River Titanium Cloud. + +docker-compose -f docker-compose-windriver.yml build + +docker-compose -f docker-compose-windriver.yml up -d + +docker ps + +### Test memcached +docker exec -it openstack_worker_1 sh + +cat <<EOF>testmemcached.py +import memcache +mem = memcache.Client(['memcached:11211'], debug=1) +mem.set("testkey1","testvalue1") +value1 = mem.get("testkey1") +print("memcached is working" if value1=="testvalue1" else "memcached is not working") +EOF + +python testmemcached.py + +exit + +docker-compose -f docker-compose-windriver.yml down |