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.258.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.258.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.258.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 | 3eb8f2ee308983e8da98d286b05c833b6f9068e972f3d9bf0405060c87af231a |
|
MD5 | 10bf2e752b15d64c97ced031726bcdf3 |
|
BLAKE2b-256 | dda85ffb8127692c470d23b47b6911ab816984387feb2d021396e692f9c33b9d |
File details
Details for the file cdk8s_image-0.2.258-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.258-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 | db9623069517ff677638614ddaeb492f5d765288caab32376735dcbef1ec3aad |
|
MD5 | fc55ed83bb420a6928e693e47834984c |
|
BLAKE2b-256 | d80b6357a1def7f11d0f179eab7bd9e398dc95f1cbe688bb7ed5d7002996b158 |