Commit d633db69 authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

docker: Add an authorized key to ssh connection

parent 70e31481
......@@ -12,8 +12,9 @@ COPY test /var/www/test
COPY site-install /var/www/site-install
# Setup ssh keys to clone git repo
RUN mkdir -p /root/.ssh && cp /var/www/deploy/id_rsa /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN mv /var/www/deploy/id_rsa* /root/.ssh/
RUN cat /root/.ssh/ >> /root/.ssh/authorized_keys
RUN chmod 600 /root/.ssh/id_rsa*
RUN ssh-keyscan >> /root/.ssh/known_hosts
#Copy vhost configuration and enable modules
......@@ -21,5 +22,5 @@ RUN cp /var/www/deploy/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite vhost_alias
# Installer Drupal et ruler des tests
RUN cd /var/www/ && /bin/bash deploy/ --audit
RUN cd /var/www/ && /bin/bash deploy/ -ia
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment