我已经复制了这个代码,似乎是各种工作的dockerfiles,这是我的:
FROM ubuntu
MAINTAINER Luke Crooks "luke@pumalo.org"
# Update aptitude with new repo
RUN apt-get update
# Install software
RUN apt-get install -y git python-virtualenv
# Make ssh dir
RUN mkdir /root/.ssh/
# Copy over private key, and set permissions
ADD id_rsa /root/.ssh/id_rsa
RUN chmod 700 /root/.ssh/id_rsa
RUN chown -R root:root /root/.ssh
# Create known_hosts
RUN touch /root/.ssh/known_hosts
# Remove host checking
RUN echo "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config
# Clone the conf files into the docker container
RUN git …
Run Code Online (Sandbox Code Playgroud) 我在Github上有一个我想要使用的私有存储库.我将我的应用程序部署到Heroku.如何在gemfile中指定私有存储库作为源?我想仅仅说出来是不够的
gem "mygem", :git=>"my github address"
Run Code Online (Sandbox Code Playgroud) 当我尝试推送到Heroku时,我收到以下错误消息.
[first_app]$git push heroku master
fatal: I don't handle protocol 'git@heroku.com:yourhttp'
Run Code Online (Sandbox Code Playgroud)
然后我看看我拥有的Heroku的不同版本,似乎不止一个,所以我尝试删除它但得到了另一个错误消息.
[first_app]$ git remote set-url --delete heroku git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fatal: Will not delete all non-push URLs
Run Code Online (Sandbox Code Playgroud)
我搜索了类似的错误消息,但无法找到任何东西来解决这个问题.非常感谢您的帮助.
这是我的配置文件:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = git@github.com:wongsteven/first_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fetch = +refs/heads/*:refs/remotes/heroku/*
[heroku]
remote = heroku
Run Code Online (Sandbox Code Playgroud)