相关疑难解决方法(0)

使用dockerfile克隆私有git repo

我已经复制了这个代码,似乎是各种工作的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)

git bitbucket docker

219
推荐指数
7
解决办法
17万
查看次数

如何指定从私有github存储库中提取的gem?

我在Github上有一个我想要使用的私有存储库.我将我的应用程序部署到Heroku.如何在gemfile中指定私有存储库作为源?我想仅仅说出来是不够的

gem "mygem", :git=>"my github address" 
Run Code Online (Sandbox Code Playgroud)

github heroku ruby-on-rails-3

59
推荐指数
4
解决办法
2万
查看次数

致命的:我不处理协议

当我尝试推送到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)

无法推送到heroku | git错误:无法处理https | heroku + git子模块需要身份验证 | …

git heroku

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

git ×2

heroku ×2

bitbucket ×1

docker ×1

github ×1

ruby-on-rails-3 ×1