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.588.tar.gz
(28.0 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.588.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.588.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f7440481132cff7013d623a0c4f62c3caac45481e923bc894606dfe89196cf |
|
MD5 | 0b931e8f040b3831caf1f1233292b07a |
|
BLAKE2b-256 | 2728c9192d43bbcf8be4c281e56825246b12467c1db4109378539d31de01cd36 |
File details
Details for the file cdk8s_image-0.2.588-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.588-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f4b2176f19b712961378e62ac4a619918189be356682adbd2db916431cc3fec |
|
MD5 | b2c5da39deb087f27811c824eeebc28d |
|
BLAKE2b-256 | 6da9be3d23c5024e2a43461dccff078b90342b2e44ff39f80297bb322016caf1 |