当我尝试使用Github.js从大于 ~1MB 的文件中 getSha(以及随后的 getBlob)时,出现 403 错误。文件大小有限制吗?代码如下:
var gh = new GitHub({
username: username,
password: password
});
// get the repo from github
var repo = gh.getRepo('some-username','name-of-repo');
// get promise
repo.getSha('some-branch', 'some-file.json').then(function(result){
// pass the sha onto getBlob
return repo.getBlob(result.data.sha);
}).then(function(result){
do_something_with_blob(result.data);
});
Run Code Online (Sandbox Code Playgroud)
GitHub API 表示它支持最大 100MB 的 blob,但我在Github.js 文档中找不到任何有关文件大小限制的信息。此外,这些文件来自私人 Github 存储库。
我正在尝试构建需要复制一些大文件(〜75GB)的docker映像,运行以下命令时出现以下错误:
$ docker build -t my-project .
Run Code Online (Sandbox Code Playgroud)
Step 8/10 : COPY some-large-directory
failed to copy files: failed to copy directory: Error processing tar file(exit status 1): write /directory: no space left on device
Run Code Online (Sandbox Code Playgroud)
我认为该错误是由容器空间不足引起的(我已经使用docker偏好将docker磁盘映像大小增加到160GB)。如果是这样,如何增加macOS(高塞拉利昂)上的最大容器大小(我读取的默认值为100GB)?