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.536.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.536.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.536.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa19aa22d53f4ffa9a3fc2310d426c696719996c3b0798bb6fb55673fe12081b |
|
MD5 | 2828190e432aaf3fc8563fa28a1a613c |
|
BLAKE2b-256 | d778ac0c9a818f069d869e02f1b4a7e2e1e4caaa0c6caff2d948c09ed8fff7f3 |
File details
Details for the file cdk8s_image-0.2.536-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.536-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.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 059204ad6876926891ff6dda1c27e11a583f253017d575b9525e89a62e8f3e40 |
|
MD5 | 92cdd48ac61141ecb1d14f80f118a99b |
|
BLAKE2b-256 | fadf91ff0f8f87066958484620912b4926f4e90abd9f047186c25763dca801dc |