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.625.tar.gz
(27.8 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.625.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.625.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8aaeb1e76ef21583a43054fbda3bbc59a8fdd42a205b78a3ae72b3554cb28c0 |
|
MD5 | 3b9f2c2ab8e8f8d1adab96e4771c4781 |
|
BLAKE2b-256 | f82146786b699c04b63aaf630fdd1cb86a759b2e200800baac8280b31ff8b40f |
File details
Details for the file cdk8s_image-0.2.625-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.625-py3-none-any.whl
- Upload date:
- Size: 26.4 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 | 372f6bd557ee5c9875bfd8440ad4e40c250d4e4ecd47c9f096f7a4376ef671bc |
|
MD5 | a7ef10eddb0b0efb90ca0bec2747385d |
|
BLAKE2b-256 | 12c718ca399066d49f617d4d3853552175248309672f6a5a996f97e8f3ea50d1 |