From 54c19709c3e804859d10586f83d9ba620095dcd9 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 30 Jan 2015 11:34:58 +0000 Subject: [PATCH] Fixing strict host checking issue --- README.md | 2 -- start.sh | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6bb7daf..03f9a2b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ ## Introduction This is a Dockerfile to build a container image for nginx and php-fpm, with the ability to pull website code from git. The container can also use environment variables to configure your web application using the templating detailed in the special features section. - ### Git reposiory The source files for this project can be found here: [https://github.com/ngineered/nginx-php-fpm](https://github.com/ngineered/nginx-php-fpm) If you have any improvements please submit a pull request. - ### Docker hub repository The Docker hub build can be found here: [https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/](https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/) diff --git a/start.sh b/start.sh index 7b4d87a..e49249d 100644 --- a/start.sh +++ b/start.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Disable Strict Host checking for non interactive git clones + +echo -e "Host *\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config + # Pull down code form git for our site! if [ ! -z "$GIT_REPO" ]; then rm /usr/share/nginx/html/*