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.455.tar.gz
(27.9 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.455.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.455.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a5e36607d11b59d93be13c8daf69c7416377de63522ecf9c39d2cfb0c68c6e |
|
MD5 | aa2a2607a50369e4ad8b9c16a2d82824 |
|
BLAKE2b-256 | d374e1609298a67d8be607052511b7b8e16bb1d2302ddab5418419f0c261d22f |
File details
Details for the file cdk8s_image-0.2.455-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.455-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e6afd8f480c11c211af301af4c224995a1d8dfb53f5c59cd674dabad7f3bf1e |
|
MD5 | b68002f437f513f9539aeee5e785f4cc |
|
BLAKE2b-256 | dccb8092580757d5a8cb7c092c6fc999618a12fa9a8517175356197daac670be |