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.270.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.270.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.270.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fd4c40feaba20a0dca71f42b85fdd4bcf23c102bae14dc77b7ecfe72f09a177 |
|
MD5 | 67f0d7b174b141c3ea76a5c6389ac710 |
|
BLAKE2b-256 | 1a95f9fc4256d95701387f671e672480ac1b970846626a55f284247922ecf6c7 |
File details
Details for the file cdk8s_image-0.2.270-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.270-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d0ddecaadd70b9d4fd5cb44ed6e8bebfab12c8af7cbe49584ec15f9addc769 |
|
MD5 | 585e0f1c85a5562749ce88e6f29871c6 |
|
BLAKE2b-256 | 4bdb51137e1a15b500cc3ce76e07d593cfa2371c3b058bb1a0adc488aebcbbcc |