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.264.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.264.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.264.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd0cec809538bb21fbe11f40de3c9baa0f83952e7dca208dec3de63fc1daa29d |
|
MD5 | 366e0736a6f9eba2745afde3b900fc3f |
|
BLAKE2b-256 | 412f3ca623de5b5a842b2c37431ab5143d1e5592163cf4ab3e9411dd9812f825 |
File details
Details for the file cdk8s_image-0.2.264-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.264-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d7cf64e29f9bb4d3a15630336906df13ad9cb564511f46b2f25d7eb90092d7 |
|
MD5 | 5733ca0ca8f057dee3d7bce70dbb1be7 |
|
BLAKE2b-256 | f157876483983b41376e9b11633c8c34c630f92b5a747ba1b4101ac28da64178 |