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.648.tar.gz
(29.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s_image-0.2.648.tar.gz
.
File metadata
- Download URL: cdk8s_image-0.2.648.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f894948a61d6aba1551bd230fc4e88dbde571ab686c0526bf76869af5b3a7bd8 |
|
MD5 | c1baa05430322bc1f19be08daafbe365 |
|
BLAKE2b-256 | 9499a0c3872a73b30bdfbdd24018f0c032a52a15e5e417c3ebbefd1844e9d7ea |
File details
Details for the file cdk8s_image-0.2.648-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.648-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 807b039a14ddf91ac05414518ac2168bfe927dafd5714160320727db2f625559 |
|
MD5 | 2e92a9d7039df3fb3241bb98bec2e8b4 |
|
BLAKE2b-256 | 9e3b0e28ff8fa95ff2f95acf9f85d605bd435bc4b11d6c8f7a5c475a0a754409 |