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.649.tar.gz
(29.3 kB
view details)
Built Distribution
File details
Details for the file cdk8s_image-0.2.649.tar.gz
.
File metadata
- Download URL: cdk8s_image-0.2.649.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651b4653edf831012e2464041867f93f96950f2779528db35d1e47541c2da2c1 |
|
MD5 | 7ccf9cebe996c6aa49ae28bf059fc960 |
|
BLAKE2b-256 | a77303035fe26b4c4c196314ae97e24736f73a4a9b8ff1c4955bb98dbb6612bf |
File details
Details for the file cdk8s_image-0.2.649-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.649-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 | 4163321a5e867390516bbd1db8cde90ede11cb1c0b39aa80bccc16bee6428660 |
|
MD5 | ad1fc8b61cb3fd73b77a97b61a294c10 |
|
BLAKE2b-256 | 9a224493a2ef319675d491f5daa95af2c6290f0bb492d0d0c6b06c26ddd82185 |