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.647.tar.gz
(29.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s_image-0.2.647.tar.gz
.
File metadata
- Download URL: cdk8s_image-0.2.647.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d188bc33c59b38ea145770983eb085e8b8ba18f941ce198052ff4fb766e63e |
|
MD5 | c5676c59c92ba81820bdcd7d94222b85 |
|
BLAKE2b-256 | 61c6053e777932b7e1b5624f6ec460bcc493e55f500d7a44d1824c9c0fbeb8c3 |
File details
Details for the file cdk8s_image-0.2.647-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.647-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 | dff1903c462b1e3b8f9d4659278187d31b67cab5882247a5dcbb2c8a7be3a7b8 |
|
MD5 | 3bbdb2e96a4e54aec934be0731b04eb8 |
|
BLAKE2b-256 | c32ebbd507c43884fe4a622769b1547ae3038312b6459a53d98a55a0b2305278 |