{"id":19687209,"url":"https://github.com/trinitronx/docker-kubectl-cd","last_synced_at":"2026-04-11T21:03:18.859Z","repository":{"id":136205201,"uuid":"94725741","full_name":"trinitronx/docker-kubectl-cd","owner":"trinitronx","description":"Basic build tools docker images + docker \u0026 kubectl for use in CI/CD environments","archived":false,"fork":false,"pushed_at":"2017-06-19T06:24:32.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T09:12:24.735Z","etag":null,"topics":["continuous-deployment","continuous-integration","docker-image","kubectl"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/trinitronx/kubectl-cd/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trinitronx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-06-19T01:51:19.000Z","updated_at":"2017-06-19T05:43:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"de578a57-c5aa-42f3-8c17-03ab2f521c76","html_url":"https://github.com/trinitronx/docker-kubectl-cd","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/trinitronx/docker-kubectl-cd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-kubectl-cd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-kubectl-cd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-kubectl-cd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-kubectl-cd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trinitronx","download_url":"https://codeload.github.com/trinitronx/docker-kubectl-cd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-kubectl-cd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"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":["continuous-deployment","continuous-integration","docker-image","kubectl"],"created_at":"2024-11-11T18:33:24.039Z","updated_at":"2026-04-11T21:03:18.843Z","avatar_url":"https://github.com/trinitronx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-kubectl-cd\n=================\n[![Build Status](https://img.shields.io/travis/trinitronx/docker-kubectl-cd.svg)](https://travis-ci.org/trinitronx/docker-kubectl-cd)\n[![Docker Pulls](https://img.shields.io/docker/pulls/trinitronx/kubectl-cd.svg)](https://hub.docker.com/r/trinitronx/kubectl-cd)\n[![Docker Stars](https://img.shields.io/docker/stars/trinitronx/kubectl-cd.svg)](https://hub.docker.com/r/trinitronx/kubectl-cd)\n[![Gittip](http://img.shields.io/gittip/trinitronx.svg)](https://www.gittip.com/trinitronx)\n\n\nThese are basic docker images starting from official OS base images, and installing [`build-essential` packages][build-tools], `docker` and `kubectl`. Intended for use when building \u0026 deploying containerized applications to [Kubernetes](https://kubernetes.io) in a Continuous Deployment pipeline.\n\nSupported platforms:\n--------------------\n\n - ubuntu-1604\n - ubuntu-1404\n - ubuntu-1204\n - centos-7\n - centos-6\n - alpine-3.6\n\nBinaries Installed\n------------------\n\n - `docker`\n - `kubectl`\n\nSee `Dockerfile`s for `kubectl` version (`K8S_VERSION`).\n\nPlease also see the documentation for the base image: [`trinitronx/build-tools`][build-tools]\n\nImage Size\n==========\n\nNote: imagelayers.io may not be working properly. If in doubt, check the [Docker Hub page][2] under \"tags\", or download the images yourself to inspect via `docker images` or `docker inspect`.\n\n - `trinitronx/kubectl-cd:ubuntu-1604`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:ubuntu-1604-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:ubuntu-1604-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n - `trinitronx/kubectl-cd:ubuntu-1404`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:ubuntu-1404-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:ubuntu-1404-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n - `trinitronx/kubectl-cd:ubuntu-1204`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:ubuntu-1204-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:ubuntu-1204-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n - `trinitronx/kubectl-cd:centos-7`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:centos-7-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:centos-7-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n - `trinitronx/kubectl-cd:centos-6`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:centos-6-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:centos-6-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n - `trinitronx/kubectl-cd:alpine-3.6`: [![Image Layers](https://badge.imagelayers.io/trinitronx/kubectl-cd:alpine-3.6-kubectl-1.6.3.svg)](https://imagelayers.io/?images=trinitronx/kubectl-cd:alpine-3.6-kubectl-1.6.3 'Get your own badge on imagelayers.io')\n\nUsage\n=====\n\nBecause `ENTRYPOINT` is set to `kubectl` you should run the container just the same as you would with the `kubectl` executable:\n\n    docker run trinitronx/kubectl-cd\n\nIf you did not specify `--server` or `--kubeconfig=/path/to/.kube/config`, `kubectl` will default to `localhost:8080`.\n\nThis will work if `kube-apiserver` is running on your docker host at `localhost:8080`. However, you will need to call docker with `--net=host`:\n\n    docker run --rm --net=host trinitronx/kubectl-cd\n\nIf `kube-apiserver` is not running on your build host at `localhost:8080`, you can use `--server` to specify a server, or if you have `~/.kube/config` you may volume mount that into the container:\n\n    docker run --rm -v ~/.kube:/root/.kube trinitronx/kubectl-cd\n\nIt may be helpful to create a shell alias to make it appear as if you are running the local executable:\n\n    alias kubectl='docker run --rm -it -u $(id -u) -e HOME=${HOME} -v ${HOME}:${HOME} trinitronx/kubectl-cd'\n\nThis creates a shortcut to run `trinitronx/kubectl-cd` as if it were the bare `kubectl` binary. So you may run commands such as:\n\n    kubectl get pods\n\nNote the `--rm` in the above examples.  This option automatically causes docker to remove the old containers after the command exits as with `docker rm`.  This will prevent old containers from building up each time you run `kubectl`.\n\nThe commands above will use the `trinitronx/kubectl-cd:latest` tag to provide the latest pushed docker image based on `alpine` Linux.  However, you may specify an explicit os  \u0026 version by tag.  This may be helpful in controlled environments to avoid `kubectl` client \u0026 `kube-apiserver` version incompatibility. For example, to run `kubectl` version `1.2.3` based on `alpine`:\n\n    docker run --rm trinitronx/kubectl-cd:1.2.3\n\nTo run `kubectl` version `1.2.3` based on `ubuntu-1604`:\n\n    docker run --rm trinitronx/kubectl-cd:ubuntu-1604-kubectl-1.2.3\n\nThe image tags are created from the `K8S_VERSION` variable detected from the built `Dockerfile`.\n\n\nBuilding\n========\n\nTo build the images locally, checkout [this repo][1] and run:\n\n    make build\n    # OR:\n    ./bin/docker-build\n\nTesting\n=======\n\n[This repo][1] contains basic `bats` tests to check the built images for the binaries installed.\n\nTo run the tests:\n\n    make test\n\nLicense\n=======\n\n[GNU GPL v2](http://choosealicense.com/licenses/gpl-2.0/)\n\nSee LICENSE.md for full text\n\nCopyright\n=========\n\nCopyright James Cuzella 2014-2017 ([@trinitronx][trinitronx-keybase])\n\n[1]: https://github.com/trinitronx/docker-kubectl-cd\n[2]: https://hub.docker.com/r/trinitronx/kubectl-cd\n[build-tools]: https://github.com/trinitronx/docker-build-tools\n[trinitronx-keybase]: https://gist.github.com/trinitronx/aee110cbdf55e67185dc44272784e694\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Fdocker-kubectl-cd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrinitronx%2Fdocker-kubectl-cd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Fdocker-kubectl-cd/lists"}