summaryrefslogtreecommitdiffstats
path: root/pike/README.md
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2022-03-21 22:40:51 +0800
committerBin Yang <bin.yang@windriver.com>2022-03-22 14:31:13 +0800
commitde7df2bb51ecd068d3eae6cf314b20c744e96927 (patch)
treeb55034272a7d683dba1a95c504c6594d970645d3 /pike/README.md
parent3bd3e44e2c9533b96f6f6664f9d6ed2150515955 (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 'pike/README.md')
-rw-r--r--pike/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/pike/README.md b/pike/README.md
index e6231224..a7f27615 100644
--- a/pike/README.md
+++ b/pike/README.md
@@ -13,3 +13,27 @@
# limitations under the License.
# Micro service of MultiCloud plugin for pike.
+### local test with docker-composer:
+
+docker-compose -f docker-compose-pike.yml build
+
+docker-compose -f docker-compose-pike.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-pike.yml down \ No newline at end of file