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.641.tar.gz
(29.3 kB
view details)
Built Distribution
File details
Details for the file cdk8s_image-0.2.641.tar.gz
.
File metadata
- Download URL: cdk8s_image-0.2.641.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab804172fed2c44ca6b5c5a148c86fd8dc533efc02f2ae81b2e5194f1d317c7 |
|
MD5 | 6743b8a0aeccc4c3f90443a2b45fadbb |
|
BLAKE2b-256 | 822c1f825164981144f655f0d0e5bcf6278f8039d08a43fe0b3d5656f2e7698f |
File details
Details for the file cdk8s_image-0.2.641-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.641-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9539a4314d34966265f337c0a31ceab007982a98382df8d18dd4578aa1ac53 |
|
MD5 | 5bca639d5ba5420df15293b07d3e1c9b |
|
BLAKE2b-256 | 6d169aa8d239b9b8001dae7696f75f7c253b2cdef9c0c1bbc2759b22afa3caf8 |