{"id":18679266,"url":"https://github.com/code-monad/carger","last_synced_at":"2026-04-30T14:31:49.047Z","repository":{"id":155222824,"uuid":"422809812","full_name":"code-monad/Carger","owner":"code-monad","description":"Building SLIM Container Images with yaml","archived":false,"fork":false,"pushed_at":"2021-10-30T07:06:41.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T15:12:03.194Z","etag":null,"topics":["docker","docker-base-image","docker-build","docker-images","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-monad.png","metadata":{"files":{"readme":"README.CN.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-30T07:06:23.000Z","updated_at":"2022-07-21T07:56:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf846d6d-9aea-4057-b423-3da7f14602b1","html_url":"https://github.com/code-monad/Carger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-monad/Carger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2FCarger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2FCarger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2FCarger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2FCarger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-monad","download_url":"https://codeload.github.com/code-monad/Carger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-monad%2FCarger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32468009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-base-image","docker-build","docker-images","dockerfile"],"created_at":"2024-11-07T09:42:47.815Z","updated_at":"2026-04-30T14:31:49.030Z","avatar_url":"https://github.com/code-monad.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 快速入门\n\n## Build已定义的所有image:\n\n```shell\n./release\n# 指定 -p 参数: ./release -p的话同时还会自动push所有镜像\n```\n\n\n# Reference\n\n## [config.yaml](config.yaml)\n\n定义了所有镜像build\u0026push时的一些通用设置\n\n### uploads\n\n#### destination\n\nBuild后的镜像将会上传的目标列表\n\n如: `harbor.custom.cn/foo`\n\n### strategy\n\n定义了镜像Build出来后的path\n\n当前只有两个字段会被自动格式化：\n\n- `$BASE` : Base目录, 比如`alpine/Dockerfile.OpenCV`的`$BASE`就是`alpine`\n- `$STAGE` : Docker的name, 比如`Dockerfile.OpenCV`的`$STAGE`就是`opencv`\n\n## detail.yaml\n\n每个文件夹里如果包含了`detail.yaml`就会被[release](release)脚本认为是预定义好的可以产出Docker镜像的工作目录。\n里面定义了镜像的编译顺序以及每个镜像的单独配置。示范:  **[alpine/detail.yaml](alpine/detail.yaml)**\n\n_(就算文件夹里有Dockerfile文件但是如果没有包含`detail.yaml`的话就不会被处理)_\n\n### produce\n\n镜像会严格按照该list的顺序来build，同时包含了一些子设置。\n\n范例：\n\n```yaml\n#an example base/detail.yaml\nproduce:\n  - Foo #  base/Dockerfile.Foo 会第一个被build，产出 base/foo:latest\n  - Bar: # base/Dockerfile.Bar 会第二个被buid，产出 bar/base:0.0.1\n    strategy: os_depend\n    version: \"0.0.1\"\n  - Mizuha: # base/Dockerfile.Mizuha 会最后一个build，产出 mizuha:latest\n    strategy: base_stage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-monad%2Fcarger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-monad%2Fcarger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-monad%2Fcarger/lists"}