# 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.8",
"maintainer_email": null,
"keywords": null,
"author": "Amazon Web Services",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/6a/02/353c8de599bfb37eed7cf868ce3d311dc5276086d01dec4efc2abcebd880/cdk8s-image-0.2.626.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.626",
"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": "",
"digests": {
"blake2b_256": "e04e8d7ff0da30e9f24342c18bc82f86b2d17dc159af9672dde7697f967e3968",
"md5": "48825598eb1470451679aeac4c9c1520",
"sha256": "59ea1d3ba2625e6477254035d499a2b1f29489515a0c81ef5dfef82d649034b5"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.626-py3-none-any.whl",
"has_sig": false,
"md5_digest": "48825598eb1470451679aeac4c9c1520",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 26383,
"upload_time": "2024-04-09T12:44:50",
"upload_time_iso_8601": "2024-04-09T12:44:50.095467Z",
"url": "https://files.pythonhosted.org/packages/e0/4e/8d7ff0da30e9f24342c18bc82f86b2d17dc159af9672dde7697f967e3968/cdk8s_image-0.2.626-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6a02353c8de599bfb37eed7cf868ce3d311dc5276086d01dec4efc2abcebd880",
"md5": "8333e3d70e621baaaa42f2dd3fd12fef",
"sha256": "e154a8e9ec71f5ad8dff053962ca12e627516cbcc49511d99a1b2abbe281c1b9"
},
"downloads": -1,
"filename": "cdk8s-image-0.2.626.tar.gz",
"has_sig": false,
"md5_digest": "8333e3d70e621baaaa42f2dd3fd12fef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 27730,
"upload_time": "2024-04-09T12:44:53",
"upload_time_iso_8601": "2024-04-09T12:44:53.560007Z",
"url": "https://files.pythonhosted.org/packages/6a/02/353c8de599bfb37eed7cf868ce3d311dc5276086d01dec4efc2abcebd880/cdk8s-image-0.2.626.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-09 12:44:53",
"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"
}