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.631.tar.gz
(27.8 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.631.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.631.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1c1b51fa51467c4fc0dfe2ff3fff214132b2283d785aef1173885fb8f4a8e16 |
|
MD5 | 8c9f2b464f0b0899398d6136349cea06 |
|
BLAKE2b-256 | 5e33f554d3fce6238c7c7f61a70ff3a1c06f1e6435a9a0aa8d66e9ee0e2149da |
File details
Details for the file cdk8s_image-0.2.631-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.631-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6effa572c6d93527cddfab0e73aa0d89cede3655111cdbd1f51e5d6dd8dfd0b8 |
|
MD5 | c2504d351eafbcf9c4c03c96285a30a1 |
|
BLAKE2b-256 | 146380a35bcec53b6963a4e4ec7b7455947a87efa4475b94e279bfd3d0537c8b |