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.594.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.594.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.594.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95cad5982b0a394e4a6eb7b633ecaa407c91ce10bdac6f8e479cb6a4967970e7 |
|
MD5 | 17a0cf784dfa2cb9ac0a98fae66a8331 |
|
BLAKE2b-256 | 690ca8db79d3020835aeeb4ccec2e6134a816711793aa0684e523283fa474c40 |
File details
Details for the file cdk8s_image-0.2.594-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.594-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb4850dfc0948073e0b3c2a74ac954e758e9abebec720f65d1680144a0913cb |
|
MD5 | b7f35df6ffb4d607ea67e12cfd1d610c |
|
BLAKE2b-256 | 44178deef5c2a6e845ca6d739466653507e5caaed10dd93140c96df7817a8e19 |