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.118.tar.gz
(25.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.118.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.118.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b23c7cca881fb47a6a00a598ab29487371feaf0dc407c72b5217df48add9bab2 |
|
MD5 | cd31a5d934838f751d1c4a529f54e269 |
|
BLAKE2b-256 | 2bea1aa028081da84f1da4db979671430a589680a3f1bc0e4ac0e647d547a214 |
File details
Details for the file cdk8s_image-0.2.118-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.118-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aae5906be850dfa1a252650b13cb25e2a5d8f02d57e5bd95aea943c6b608cf8 |
|
MD5 | d94d71e410a3a4aea1764739e3822efc |
|
BLAKE2b-256 | c7582c248043bcd8e9591b4f1a71d2bf26e9a8542cb55501b1022f2dcc55c2bd |