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.334.tar.gz
(27.4 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.334.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.334.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67f87c40bbd25098f937b57bb00b4c38bc4d51a168ccf3f7ee6d953813655e6 |
|
MD5 | d96d2680df4a60758ce0f3992d84cf0f |
|
BLAKE2b-256 | b69247e8671551e87353ea1cd10f196e4335acb52faf4cc70e8a44febbb286ad |
File details
Details for the file cdk8s_image-0.2.334-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.334-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31f20bd58531647386ce43e394ac591649ad740a5764f370e7bcdc5ced22c4b |
|
MD5 | 9d9349fcd77ab8ae9dc5b8a1658b6234 |
|
BLAKE2b-256 | a512e3c92f506678e9d7d6fdb5b875ca3489f21be5aee2f505831ee0cc1e48aa |