Build & Push local docker images inside CDK8s applications
Project description
cdk8s-image
An Image
construct which takes care of building & pushing docker images that
can be used in 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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk8s-image-0.2.621.tar.gz
(27.7 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.621.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.621.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a20f5c1fa27365342ead9e1139f01acb6e486a6c03f5f2ca29a7d3d1a2f05aa4 |
|
MD5 | ee667892cffb877501afd44565359980 |
|
BLAKE2b-256 | b96a69f76a56b0af3919665ad7ae70a8ceb5ab9abce3a35cbc597c45d5320c98 |
File details
Details for the file cdk8s_image-0.2.621-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.621-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf75500497130f8d627a288e4fef47e563ae07c8cc9d64ea7c2bc3168329917 |
|
MD5 | 8a08c2dbb9949bfd3b1dd6d61184dc5a |
|
BLAKE2b-256 | 0d2d84a4815b18ac4f04c1eb4d4fd246c68960a951384294f7d907bf34d5faf8 |