From deb4cee0617c84b572236743562890108643b82b Mon Sep 17 00:00:00 2001 From: Divyang Patel Date: Fri, 15 Mar 2019 16:10:51 +1100 Subject: [PATCH] Fix cherrypy import failure due to more-itertools more-itertools version 6.0.0 is incompatible with python-2.7 importing cherrypy failes due to this. Changed startAnsibleServ.sh to explicitly install 'more-itertools' version 5.0.0 Also added 'apt-get update' before installing software-properties-common package which failed earlier to install. Container starts without problem after these changes Change-Id: I030ad54bb004056846f15eebf6ae0e8b5c4ae004 Issue-ID: CCSDK-1166 Signed-off-by: Divyang Patel --- ansible-server/src/main/scripts/startAnsibleServer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible-server/src/main/scripts/startAnsibleServer.sh b/ansible-server/src/main/scripts/startAnsibleServer.sh index dd6f2a36..9fe0b79e 100644 --- a/ansible-server/src/main/scripts/startAnsibleServer.sh +++ b/ansible-server/src/main/scripts/startAnsibleServer.sh @@ -3,10 +3,12 @@ exec &> >(tee -a "/var/log/ansible-server.log") if [ ! -f /tmp/.ansible-server-installed ] then + pip install 'more-itertools==5.0.0' pip install PyMySQL pip install 'cherrypy<18.0.0' pip install requests + apt-get update apt-get -y install software-properties-common apt-add-repository -y ppa:ansible/ansible apt-get -y install ansible -- 2.16.6