相关疑难解决方法(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万
查看次数

Heroku推送被拒绝,Submodule安装失败

我的repo使用了Recurly-js的自定义版本,我使用这些说明https://devcenter.heroku.com/articles/git-submodules将其打包为子模块.但是,当我尝试部署时,我现在收到以下错误:

----> Heroku receiving push 
-----> Git submodules detected, installing
       Submodule 'recurly-js' (/app/tmp/repo.git/recurly-js) registered for path 'recurly-js'
       Initialized empty Git repository in /tmp/build_3iacvn8h2rnha/recurly-js/.git/
       fatal: '/app/tmp/repo.git/recurly-js' does not appear to be a git repository
       fatal: The remote end hung up unexpectedly
       Clone of '/app/tmp/repo.git/recurly-js' into submodule path 'recurly-js' failed
 !     Heroku push rejected, Submodule install failed
Run Code Online (Sandbox Code Playgroud)

git heroku git-submodules

11
推荐指数
1
解决办法
4519
查看次数

标签 统计

git ×2

bitbucket ×1

docker ×1

git-submodules ×1

heroku ×1