Fix bug & Modify VM configuration 02/1002/1
authorJingzhao.Ni <Jingzhao.Ni@arm.com>
Mon, 17 Jun 2019 09:40:56 +0000 (17:40 +0800)
committerJingzhao.Ni <Jingzhao.Ni@arm.com>
Mon, 17 Jun 2019 09:40:56 +0000 (17:40 +0800)
1. The "docker ps" command without sudo privilege causes getting wrong
 docker id.
2. Modify the virtual cpu number and virtual memory capacity up to
 12G

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: Ic3af4ef06fc32a8101d78257ce7d300826f1f7fc

jjb/iec/iec-compass-build.sh
jjb/iec/iec-compass-deploy.sh

index 3a5e2d8..96ce02e 100755 (executable)
@@ -34,7 +34,7 @@ COMPASS_WORK_DIR=$WORKSPACE/../compass-work
 mkdir -p $COMPASS_WORK_DIR
 ln -s $COMPASS_WORK_DIR work
 
-sudo docker rm -f `docker ps | grep compass | cut -f1 -d' '` || true
+sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true
 
 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
 
index 17b74cb..dca5a15 100755 (executable)
@@ -14,7 +14,7 @@ export KUBERNETES_VERSION="v1.13.0"
 
 export DHA="deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml"
 export NETWORK="deploy/conf/vm_environment/network.yml"
-export VIRT_NUMBER=3 VIRT_CPUS=2 VIRT_MEM=8192 VIRT_DISK=50G
+export VIRT_NUMBER=3 VIRT_CPUS=4 VIRT_MEM=12288 VIRT_DISK=50G
 
 ./deploy.sh