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.542.tar.gz
(28.0 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.542.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.542.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a66bccc1b44a39390919790b8e634c23a9d2140fd9a964ed8f05fd371f316a1 |
|
MD5 | 53fe5ea11704c5b439d05094419ce7bd |
|
BLAKE2b-256 | 5b502dc73c8f31026ba81383df98aaf8ba0fb16a801f6ae0f27fbc02d25d1197 |
File details
Details for the file cdk8s_image-0.2.542-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.542-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 | 87c04957ac3cf9af863626f2aeffcabc8e88b561233658c396e0b532a4148bb4 |
|
MD5 | e5a7c81ed7152852318cdd630b46b5a7 |
|
BLAKE2b-256 | 130e2ec1a40a416acb8c4d4514b4e008cc7e4e05c86392d885a99663f0d42212 |