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.497.tar.gz
(27.9 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.497.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.497.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59879e6568da7f79fc6ba22759c05576f6857eab7dd160e575b6b317d3adb00c |
|
MD5 | d687bd144361d7af2b88b6d978d08467 |
|
BLAKE2b-256 | ba87197a2d6155247657378723498fb72cba87c19e1838435788ed99ae4b6602 |
File details
Details for the file cdk8s_image-0.2.497-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.497-py3-none-any.whl
- Upload date:
- Size: 26.5 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 | 0804d0867ac7b889f645225a0480d997a5091df585324346784598f3518f58e7 |
|
MD5 | bd5b7f21fa0103bdb1a56b0b1f44096d |
|
BLAKE2b-256 | f295892cd90a85a4f30901ed2e4821ce46f273d559a9e5dd07e7247e6a2431c9 |