# 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/a7/73/03035fe26b4c4c196314ae97e24736f73a4a9b8ff1c4955bb98dbb6612bf/cdk8s_image-0.2.649.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.649",
"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": "9a224493a2ef319675d491f5daa95af2c6290f0bb492d0d0c6b06c26ddd82185",
"md5": "ad1fc8b61cb3fd73b77a97b61a294c10",
"sha256": "4163321a5e867390516bbd1db8cde90ede11cb1c0b39aa80bccc16bee6428660"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.649-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ad1fc8b61cb3fd73b77a97b61a294c10",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 28112,
"upload_time": "2024-11-16T12:16:15",
"upload_time_iso_8601": "2024-11-16T12:16:15.781241Z",
"url": "https://files.pythonhosted.org/packages/9a/22/4493a2ef319675d491f5daa95af2c6290f0bb492d0d0c6b06c26ddd82185/cdk8s_image-0.2.649-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a77303035fe26b4c4c196314ae97e24736f73a4a9b8ff1c4955bb98dbb6612bf",
"md5": "7ccf9cebe996c6aa49ae28bf059fc960",
"sha256": "651b4653edf831012e2464041867f93f96950f2779528db35d1e47541c2da2c1"
},
"downloads": -1,
"filename": "cdk8s_image-0.2.649.tar.gz",
"has_sig": false,
"md5_digest": "7ccf9cebe996c6aa49ae28bf059fc960",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 29251,
"upload_time": "2024-11-16T12:16:18",
"upload_time_iso_8601": "2024-11-16T12:16:18.303804Z",
"url": "https://files.pythonhosted.org/packages/a7/73/03035fe26b4c4c196314ae97e24736f73a4a9b8ff1c4955bb98dbb6612bf/cdk8s_image-0.2.649.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-16 12:16:18",
"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"
}