Dockerfile: Add default SSH config

* Add a default ssh config that won't blow up due to empty/missing
  known_hosts file.
* Those concerned about security are expected to fork the repo and
  update the Dockerfile to include trusted values.
This commit is contained in:
Kyle Manna 2014-11-21 12:24:31 -08:00
parent bdc92d0d06
commit 192cba106d
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ RUN chmod 755 /usr/local/bin/*
# All builds will be done by user aosp # All builds will be done by user aosp
RUN useradd --create-home aosp RUN useradd --create-home aosp
ADD gitconfig /home/aosp/.gitconfig ADD gitconfig /home/aosp/.gitconfig
ADD ssh_config /home/aosp/.ssh/config
RUN chown aosp:aosp /home/aosp/.gitconfig RUN chown aosp:aosp /home/aosp/.gitconfig
# The persistent data will be in these two directories, everything else is # The persistent data will be in these two directories, everything else is

4
ssh_config Normal file
View File

@ -0,0 +1,4 @@
# Somewhat insecure, fork and override as needed.
Host *
#IdentityFile /root/.ssh/id_rsa
StrictHostKeyChecking no