Browse Source

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.
4.4-kitkat
Kyle Manna 7 years ago
parent
commit
192cba106d
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      Dockerfile
  2. +4
    -0
      ssh_config

+ 1
- 0
Dockerfile View File

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


+ 4
- 0
ssh_config View File

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

Loading…
Cancel
Save