2017-06-09 8 views
0

GitLab-Serverを搭載したローカルサーバにGithubリポジトリを移動しています。そして私たちはJenkins-Serverを使ってビルドを行います。実際に発見する方法組織のすべてのGithubリポジトリのサイズ

これまで、両方のマシンでHarddriveが最小限に抑えられていることがわかりました。

- > GitServerレポ取引のためのディスク容量が必要になります
- >ジェンキンス-Serverは

そのための構築のためのレポ+スペースのためにディスク容量が必要になります。すべてのどのように多くのディスクスペースを見つけるための方法はありを私たちのリポジトリには実際のファイルサイズだけでなく、本当にgitリポジトリ全体のサイズが一緒になっています。

私はAPIについて読んでいます。 しかし、やって

curl -i -u <myUserName> https://api.github.com/orgs/<organisationName> 

私は実際にメタデータを受け取ることができますが、実際の使用ディスク容量についての情報を提供していないよう:

HTTP/1.1 200 OK 
Server: GitHub.com 
Date: Fri, 09 Jun 2017 15:09:07 GMT 
Content-Type: application/json; charset=utf-8 
Content-Length: 1463 
Status: 200 OK 
X-RateLimit-Limit: 5000 
X-RateLimit-Remaining: 4980 
X-RateLimit-Reset: 1497022865 
Cache-Control: private, max-age=60, s-maxage=60 
Vary: Accept, Authorization, Cookie, X-GitHub-OTP 
ETag: "62fadd06b840f42f8bf9cb69450b9d1b" 
Last-Modified: Tue, 30 May 2017 12:33:36 GMT 
X-GitHub-Media-Type: github.v3; format=json 
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval 
Access-Control-Allow-Origin: * 
Content-Security-Policy: default-src 'none' 
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload 
X-Content-Type-Options: nosniff 
X-Frame-Options: deny 
X-XSS-Protection: 1; mode=block 
X-Runtime-rack: 0.068430 
X-GitHub-Request-Id: XXXX:XXXX:XXXXXXX:XXXXXXX:XXXXXXX 

{ 
    "login": "XXXXXXXX", 
    "id": XXXXXXXXX, 
    "url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 
    "repos_url": "https://api.github.com/orgs/XXXXXXX/repos", 
    "events_url": "https://api.github.com/orgs/XXXXXX/events", 
    "hooks_url": "https://api.github.com/orgs/XXXXXX/hooks", 
    "issues_url": "https://api.github.com/orgs/XXXXXX/issues", 
    "members_url": "https://api.github.com/orgs/XXXXXX/members{/member}", 
    "public_members_url": "https://api.github.com/orgs/XXXXXX/public_members{/member}", 
    "avatar_url": "https://avatars1.githubusercontent.com/XXXXXX", 
    "description": "XXXXXX", 
    "name": "XXXXXX", 
    "company": null, 
    "blog": "XXXXXX", 
    "location": "XXXXXX", 
    "email": "XXXXXXXXXXXXXXXXXXXX", 
    "has_organization_projects": true, 
    "has_repository_projects": true, 
    "public_repos": 0, 
    "public_gists": 0, 
    "followers": 0, 
    "following": 0, 
    "html_url": "https://github.com/XXXXXXXXXXXXXX", 
    "created_at": "2016-09-14T11:30:47Z", 
    "updated_at": "2017-05-30T12:33:36Z", 
    "type": "Organization", 
    "total_private_repos": 62, 
    "owned_private_repos": 62, 
    "private_gists": null, 
    "disk_usage": null, 
    "collaborators": null, 
    "billing_email": null, 
    "plan": { 
    "name": "team", 
    "space": 976562499, 
    "private_repos": 99999, 
    "filled_seats": 15, 
    "seats": 15 
    }, 
    "default_repository_permission": null, 
    "members_can_create_repositories": true 
} 

そこつのタグspaceですが、それだけのようです利用可能な最大スペースは使用されていません。そして別のタグdisk_usageがありますが、それはnullです。

答えて

1

おそらくgit clone --bareそれらのすべてとディスク上のサイズを確認しますか?

+0

最初に感謝!私は '--bare'オプションを知らなかった。とにかくそれは62レポを見ることができるように..私は単純な方法があるか、少なくともそれらを1つずつクローンする前に...と思った...それらをすべてコピーする方法を知っていますか? – derHugo

+0

ええ、私はあなたがスクリプトを書くべきだと言いたい。 – mattbornski

+0

--bareはgitlfsをサポートしていますか?申し訳ありませんが、 – derHugo

関連する問題