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.521.tar.gz
(28.0 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.521.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.521.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 166b1c146a66d95d0f6ae898e819f47153d8003c7bf0a681388108c489385d50 |
|
MD5 | f43192ab8d961a977551980c05ff291e |
|
BLAKE2b-256 | 8b6b3f99b00ba61729b54f042f059d745fea522c67545569ebd9e33ff13c2fbc |
File details
Details for the file cdk8s_image-0.2.521-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.521-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.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3e8e6eedad3acb703fd0603b1d5b7aefdaa355370ae9b5ae6af537542d0e62 |
|
MD5 | 473d6f0d28144cc72b160d499c340ead |
|
BLAKE2b-256 | ecd0c52ddc9127b39c947d24473e23143ebd619087a0b382cf444e52c9748d23 |