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.324.tar.gz
(27.5 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.324.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.324.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651e782cb13b16cf6c3eeb548d2084c1a35b4184e4b2297435c8a3c1149af2d4 |
|
MD5 | 3d8c3de0d95820a96a1513a39a76e6fb |
|
BLAKE2b-256 | 8924df66f3d4b89c05eb7fe170f3ce0c82ff494481eb7785b7a09ac5e62831c3 |
File details
Details for the file cdk8s_image-0.2.324-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.324-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16865daa74250427e1984f0a2c8c03bb03d79637e75c0b24aeca4b9d80c50af6 |
|
MD5 | 26cd112fa86a401990f2b2137b876673 |
|
BLAKE2b-256 | 13b754358ace8f7f4066377388331b3ae4db7381ff47d7453973ff839195e4d5 |