Closed noogen closed 9 years ago
That's probably is the good way to solve it.
I'm having problems with the fix introduced here using a fresh install of dokku-alt on Ubuntu 14.04.
➜ dokku-alt-manager git:(master) git push deploy master
Counting objects: 539, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (251/251), done.
Writing objects: 100% (539/539), 543.31 KiB | 0 bytes/s, done.
Total 539 (delta 216), reused 536 (delta 216)
remote: Cloning into '/tmp/tmp.m1XoInZA6y'...
remote: warning: You appear to have cloned an empty repository.
remote: done.
remote: HEAD is now at 2e89b5c... Revert "Merge branch 'master' of github.com:dokku-alt/dokku-alt-manager"
remote: -----> Building dam using Dockerfile...
remote: Sending build context to Docker daemon 546.3 kB
remote: Sending build context to Docker daemon
remote: Step 0 : FROM ubuntu:latest
remote: ---> fa81ed084842
remote: Step 1 : MAINTAINER Romans <me@nearly.guru>
remote: ---> Using cache
remote: ---> 1883a22cc1fa
remote: Step 2 : ENV DEBIAN_FRONTEND noninteractive
remote: ---> Using cache
remote: ---> 3f1e19f0b36d
remote: Step 3 : RUN apt-get update && apt-get -yq install curl git apache2 libapache2-mod-php5 php5-mysql php5-gd php5-curl php-pear php-apc && rm -rf /var/lib/apt/lists/*
remote: ---> Using cache
remote: ---> 549e24f52b2c
remote: Step 4 : RUN sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini
remote: ---> Using cache
remote: ---> e02b791fb40a
remote: Step 5 : RUN sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/cli/php.ini
remote: ---> Using cache
remote: ---> 81209ce444c2
remote: Step 6 : RUN sed -i "s/# StrictHostKeyChecking ask\n StrictHostKeyChecking no/g" /etc/ssh/ssh_config
remote: ---> Running in cf0c7e624e92
remote: sed: -e expression #1, char 58: unterminated `s' command
remote: time="2015-06-04T15:36:36+01:00" level=info msg="The command [/bin/sh -c sed -i \"s/# StrictHostKeyChecking ask\\n StrictHostKeyChecking no/g\" /etc/ssh/ssh_config] returned a non-zero code: 1"
To dokku@ribot.io:dam
! [remote rejected] master -> master (pre-receive hook declined)
I changed it to RUN sed -i "s/# StrictHostKeyChecking ask/ StrictHostKeyChecking no/g" /etc/ssh/ssh_config
and it appeared to work
I'm getting "host verification failed" error when using git deployment. After some troubleshooting, it turn out to be an issue with the known_hosts file not recognizing the dokku container host. Just wondering the best way fix this. Right now, I modified /etc/ssh/ssh_config with the following add to the Dockerfile:
RUN sed -i "s/# StrictHostKeyChecking ask\n StrictHostKeyChecking no/g" /etc/ssh/ssh_config