# cdk8s-image
An `Image` construct which takes care of building & pushing docker images that
can be used in [CDK8s](https://github.com/awslabs/cdk8s) apps.
The following example will build the docker image from `Dockerfile` under the
`my-app` directory, push it to a local registry and then define a Kubernetes
deployment that deploys containers that run this image.
```python
const image = new Image(this, 'image', {
dir: `${__dirname}/my-app`,
registry: 'localhost:5000'
});
new Deployment(this, 'deployment', {
containers: [ new Container({ image: image.url }) ],
});
```
## Contributions
All contributions are celebrated.
## License
Licensed under [Apache 2.0](./LICENSE).
Raw data
{
"_id": null,
"home_page": "https://github.com/cdk8s-team/cdk8s-image.git",
"name": "cdk8s-image",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Amazon Web Services",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/a5/a5/0785ba4c8d610db9b7ac3d59517116aad622ed4c110ac066bd755b09fb00/cdk8s_image-0.2.698.tar.gz",
"platform": null,
"description": "# cdk8s-image\n\nAn `Image` construct which takes care of building & pushing docker images that\ncan be used in [CDK8s](https://github.com/awslabs/cdk8s) apps.\n\nThe following example will build the docker image from `Dockerfile` under the\n`my-app` directory, push it to a local registry and then define a Kubernetes\ndeployment that deploys containers that run this image.\n\n```python\nconst image = new Image(this, 'image', {\n dir: `${__dirname}/my-app`,\n registry: 'localhost:5000'\n});\n\nnew Deployment(this, 'deployment', {\n containers: [ new Container({ image: image.url }) ],\n});\n```\n\n## Contributions\n\nAll contributions are celebrated.\n\n## License\n\nLicensed under [Apache 2.0](./LICENSE).\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Build & Push local docker images inside CDK8s applications",
"version": "0.2.698",
"project_urls": {
"Homepage": "https://github.com/cdk8s-team/cdk8s-image.git",
"Source": "https://github.com/cdk8s-team/cdk8s-image.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "82826527aefb660674478b777dfeef18cbac6b599b0fc14e60f26a0638cf187c",
"md5": "c4dd9916f0e2ecb77ddb95d85ba62c30",
"sha256": "d3255510ca01406775c70648b873c170893ec0129204a84a71f25df5d61ee54e"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.698-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c4dd9916f0e2ecb77ddb95d85ba62c30",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 28185,
"upload_time": "2025-08-26T12:19:22",
"upload_time_iso_8601": "2025-08-26T12:19:22.372437Z",
"url": "https://files.pythonhosted.org/packages/82/82/6527aefb660674478b777dfeef18cbac6b599b0fc14e60f26a0638cf187c/cdk8s_image-0.2.698-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a5a50785ba4c8d610db9b7ac3d59517116aad622ed4c110ac066bd755b09fb00",
"md5": "d2681f9ef55db6dd057c113456f3092e",
"sha256": "75b8905100021d1a12dc09d61fbf254c6bcac9c137415ef52de64f7c34d3b7cc"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.698.tar.gz",
"has_sig": false,
"md5_digest": "d2681f9ef55db6dd057c113456f3092e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 29357,
"upload_time": "2025-08-26T12:19:24",
"upload_time_iso_8601": "2025-08-26T12:19:24.144245Z",
"url": "https://files.pythonhosted.org/packages/a5/a5/0785ba4c8d610db9b7ac3d59517116aad622ed4c110ac066bd755b09fb00/cdk8s_image-0.2.698.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-26 12:19:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cdk8s-team",
"github_project": "cdk8s-image",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cdk8s-image"
}