# 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/bf/0a/44381506b0190926a030ccea3297ed49651ad65e23624787c2efb37ee18e/cdk8s_image-0.2.654.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.654",
"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": "89587d5163b1025d654423524e1febbd856c2ba30bd6d325fc47d904b94967a9",
"md5": "6cead624e018d66faf66b9246aab6c80",
"sha256": "29736034c7c16df27de990e0eff2e06ee9643bd32ee6c01a8885092c62e867d9"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.654-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6cead624e018d66faf66b9246aab6c80",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 28183,
"upload_time": "2024-12-24T12:16:50",
"upload_time_iso_8601": "2024-12-24T12:16:50.047358Z",
"url": "https://files.pythonhosted.org/packages/89/58/7d5163b1025d654423524e1febbd856c2ba30bd6d325fc47d904b94967a9/cdk8s_image-0.2.654-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bf0a44381506b0190926a030ccea3297ed49651ad65e23624787c2efb37ee18e",
"md5": "d294bac768eb7d1b9a52348926751e86",
"sha256": "47d53851acf0b33c5cc5e5c29eb67c11f4e81d92b5c5ff7c4cfa1f45f44f7e1a"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.654.tar.gz",
"has_sig": false,
"md5_digest": "d294bac768eb7d1b9a52348926751e86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 29342,
"upload_time": "2024-12-24T12:16:52",
"upload_time_iso_8601": "2024-12-24T12:16:52.775498Z",
"url": "https://files.pythonhosted.org/packages/bf/0a/44381506b0190926a030ccea3297ed49651ad65e23624787c2efb37ee18e/cdk8s_image-0.2.654.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-24 12:16:52",
"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"
}