我正试图从测试厨房中的私人Bitbucket回购中克隆。我已经为Bitbucket使用配置密钥对,当我运行厨房登录时可以手动以root身份运行命令:
const board = JXG.JSXGraph.initBoard('jxgbox', {
boundingbox: [-5, 5, 5, -5],
axis: true
});
var comb = function(board, [left, right, n, base, height]) {
var delta,
c = board.create('curve', [[0], [0]]);
delta = (right - left) / n;
c.updateDataArray = function() {
var s;
this.dataX = [];
this.dataY = [];
for (s = left; s + delta*0.5<= right; s += delta) {
this.dataX.push(s);
this.dataY.push(base);
this.dataX.push(s + delta);
this.dataY.push(base + height);
this.dataX.push(NaN); // Force a jump
this.dataY.push(NaN);
}
};
board.update();
return c;
};
var c1 = comb(board, [1, 3, 10, 0, 0.2]);
var c2 = comb(board, [-4, -1, 20, -2, 0.2]);
但是当厨房运行时,它总是会失败。我无法理解我的生活。以下是我在食谱中所做的事情:
git clone <repo> <directory>
我完全失去了这个,特别是如果我可以在容器内运行git命令。这是我得到的堆栈跟踪:
directory '/root/.ssh/' do
owner "root"
group "root"
mode '0700'
action :create
end
template '/root/.ssh/id_rsa' do
source 'id_rsa.erb'
owner 'root'
group 'root'
mode '0600'
end
package 'git'
file "/root/git_wrapper.sh" do
owner "root"
mode "0755"
content "#!/bin/sh\nexec /usr/bin/ssh -i /root/.ssh/id_rsa \"$@\""
end
git "/etc/myrepo" do
# The following line ensures that our repo-specific deployment
# ssh-key will be used for all clone & fetch operations.
repository 'git@bitbucket.org:myrepo/myrepo.git'
checkout_branch "master"
ssh_wrapper "/root/git_wrapper.sh"
user "root"
action :sync
end
有人可以建议我需要做些什么来解决这个问题吗?
答案 0 :(得分:1)
听起来关键可能是错的?也是poise-git cookbook的强制性插件,这使得它更简单。