Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
sfl-boilerplate
Commits
d633db69
Commit
d633db69
authored
Jan 16, 2015
by
Ernesto Rodriguez Ortiz
Browse files
docker: Add an authorized key to ssh connection
parent
70e31481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
d633db69
...
...
@@ -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/id_rsa.pub
>>
/root/.ssh/authorized_keys
RUN
chmod
600 /root/.ssh/id_rsa
*
RUN
ssh-keyscan gitlab.savoirfairelinux.com
>>
/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/jenkins-post-build.sh
-
-audit
RUN
cd
/var/www/
&&
/bin/bash deploy/jenkins-post-build.sh
-
ia
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment