Browse Source

Arreglo error de keys

gabriel 6 years ago
parent
commit
493e8ade02
3 changed files with 11 additions and 2 deletions
  1. 3 1
      tools/Dockerfile
  2. 1 1
      tools/composer.json
  3. 7 0
      tools/installModules.sh

+ 3 - 1
tools/Dockerfile

@@ -30,6 +30,8 @@ RUN apt-get update && apt-get install -yq --allow-unauthenticated docker-ce
 ## add keys ssh from hosts
 RUN mkdir ~/.ssh
 RUN ssh-keyscan -H -p 22  bitbucket.org >> ~/.ssh/known_hosts
+RUN ssh-keyscan -H -p 222  infra.flowdat.com >> ~/.ssh/known_hosts
+
 ## add key to container
 COPY keys /opt/keys
 RUN chmod 0600 /opt/keys/*
@@ -40,7 +42,7 @@ RUN chmod -R 777 $DIR_INSTALL
 ADD . $DIR_INSTALL
 WORKDIR $DIR_INSTALL
 
-RUN cd $DIR_INSTALL ; composer install  -n 
+RUN cd $DIR_INSTALL ; eval $(ssh-agent); ssh-add /opt/keys/bitbucket.id_rsa; composer install  -n
 
 ENV DOCKER_HOST unix:///tmp/docker.sock
 

+ 1 - 1
tools/composer.json

@@ -24,7 +24,7 @@
             "type": "vcs",
             "url": "ssh://git@infra.flowdat.com:222/VendorSoftwareFlowdat3/php-docker-lib.git",
             "options": {
-                "local_pk": "../keys/bitbucket.id_rsa"
+                "local_pk": "./keys/bitbucket.id_rsa"
             }
         }
     ]

+ 7 - 0
tools/installModules.sh

@@ -250,6 +250,13 @@ then
     fcGetYesNo
     if [ "$VALUEYESNO" = "1" ];
     then
+        echo "Agregando el repositorio deb http://ftp.debian.org/debian stretch-backports main"
+        echo "deb http://ftp.debian.org/debian stretch-backports main" >>  /etc/apt/sources.list.d/certbot.debian.list
+        echo "Actualizando paquetes"
+        apt-get update && apt-get install certbot -t stretch-backports
+        echo "#########################################################################################################"
+        echo "En caso de error con certbot y python puede correr esta linea: python -m easy_install --upgrade pyOpenSSL"
+        echo "#########################################################################################################"
         echo "Instalando paquetes requeridos"
         pip install certbot-dns-google
         echo "Ingresando al directorio letsencrypt"