{"id":15677539,"url":"https://github.com/cedrickring/kbuild","last_synced_at":"2025-05-07T01:02:00.146Z","repository":{"id":64306555,"uuid":"159642603","full_name":"cedrickring/kbuild","owner":"cedrickring","description":"CLI for Kaniko to build container images in a Kubernetes Cluster","archived":false,"fork":false,"pushed_at":"2019-10-07T20:14:36.000Z","size":5718,"stargazers_count":13,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T04:41:32.438Z","etag":null,"topics":["cli","golang","kaniko","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedrickring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2018-11-29T09:41:02.000Z","updated_at":"2024-06-01T18:33:21.000Z","dependencies_parsed_at":"2023-01-15T10:45:37.334Z","dependency_job_id":null,"html_url":"https://github.com/cedrickring/kbuild","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fkbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fkbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fkbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickring%2Fkbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickring","download_url":"https://codeload.github.com/cedrickring/kbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793661,"owners_count":21805057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","golang","kaniko","kubernetes"],"created_at":"2024-10-03T16:09:51.585Z","updated_at":"2025-05-07T01:01:59.066Z","avatar_url":"https://github.com/cedrickring.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ekbuild\u003c/h1\u003e\n\u003cp align=\"center\"\u003eBuild container images inside a Kubernetes Cluster with your local build context.\u003c/p\u003e\n\u003cp align=\"center\"\u003eFor more information see: \u003ca href=\"https://github.com/GoogleContainerTools/kaniko\"\u003eKaniko\u003c/a\u003e\u003c/p\u003e\n\n### Requirements\n1. `~/.docker/config.json` exists and authenticated to a registry\n2. `~/.kube/config` exists and configured with the correct cluster\n3. A Kubernetes Cluster\n4. A Container Registry\n\n### Installation\n\nFor Linux or Mac use\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/cedrickring/kbuild/master/scripts/get | bash\n```\n\n### Usage\n\nBuild an image of the current directory with tag `repository:tag`\n\n```bash\nkbuild -t repository:tag\n````\n\nTo specify a Dockerfile in the working directory, use:\n\n```bash\nkbuild -t repository:tag -d Dockerfile.dev\n```\n\nor\n\n```bash\nkbuild --tag repository:tag --dockerfile Dockerfile.dev\n```\n\nrespectively.\n\nYou can specify multiple image tags by repeating the tag flag.\n\n### Additional Flags\n \n#### -w / --workdir\n\nSpecify the working directory (defaults to the directory you're currently in)\n\n#### -d / --dockerfile\n\nPath to the `Dockerfile` in the build context (defaults to `Dockerfile`)\n\n#### -c / --cache\n\nEnable `RUN` command caching for faster builds (See [here](https://github.com/GoogleContainerTools/kaniko/blob/master/README.md#--cache))\n\n#### --cache-repo\n\nSpecify the repo to cache build steps in (defaults to `\u003crepository\u003ecache`, repo retrieved from the image tag)\n\n#### -n / --namespace\n\nSpecify namespace for the builder to run in (defaults to \"default\" namespace)\n\n#### --build-arg\n\nThis flag allows you to pass in build args (ARG) for the Kaniko executor\n\n#### --bucket\n\nThe bucket to use for [Google Cloud Storage](#google-cloud-storage)\n\n### Registry credentials\n\nYou can either have your Docker Container Registry credentials in your `~/.docker/config.json` or provide them with the\n`--username` (`-u`) and `--password` (`-p`) flags.\n\nWhen using the cli flags, the container registry url is guessed based on the first provided image tag.\ne.g. `-t my.registry.com/tag` is guessed as `my.registry.com`. If no specific registry is provided in the tag, it defaults to\n`https://index.docker.io/v1/`.\n\n### Google Cloud Storage \n\nIf you want to use the Google Cloud Storage to store your build context, you have to pass `gcs` as the first argument to kbuild\nand specify the `--bucket` to use.\n\nExample: `kbuild -t image:tag --bucket mybucket gcs`\n\nYou might need to create [a service account key](https://console.cloud.google.com/apis/credentials/serviceaccountkey) and store the path to the `service-account.json` in the `GOOGLE_APPLICATION_CREDENTIALS` environment variable. \n\n### How does kbuild work?\n\nIn order to use the local context, the context needs to be tar-ed, copied to an Init Container, which shares an\nempty volume with the Kaniko container, and extracted in the empty volume (only for local context).\n\n### Limitations\n\n* You cannot specify args for the Kaniko executor\n\n#### Windows\n* The docker-credential-wincred helper is not supported by Kaniko\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickring%2Fkbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickring%2Fkbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickring%2Fkbuild/lists"}