Move add-apt-repository to startup
authorTimoney, Dan (dt5972) <dt5972@att.com>
Thu, 26 Apr 2018 18:02:08 +0000 (14:02 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Thu, 26 Apr 2018 18:02:08 +0000 (14:02 -0400)
add-apt-repository is failing in Jenkins, so move it to ansible server
startup script instead.

Change-Id: Iae058003678748c9a4bed9b5e279ebcce4c4695a
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
installation/ansible-server/src/main/docker/Dockerfile
installation/ansible-server/src/main/scripts/startAnsibleServer.sh

index dfbb060..87ae9e7 100644 (file)
@@ -16,10 +16,7 @@ RUN apt-get -y install vim
 RUN apt-get -y install python2.7
 RUN apt-get -y install python-pip
 
-##Ansible:
-RUN apt-get -y install software-properties-common
-RUN apt-add-repository -y ppa:ansible/ansible
-RUN apt-get -y install ansible
+
 
 # copy files needed
 COPY opt /opt/
index 67af962..643bbab 100644 (file)
@@ -5,6 +5,10 @@ then
        pip install PyMySQL
        pip install cherrypy
        pip install requests
+
+    apt-get -y install software-properties-common
+    apt-add-repository -y ppa:ansible/ansible
+    apt-get -y install ansible
        date > /tmp/.ansible-server-installed 2>&1
 fi