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.179.tar.gz
(26.8 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.179.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.179.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74172bdbbf639ace3f8dfba29453c2eb08ff18fdc4a7c6d9f887a15e4f1c2746 |
|
MD5 | e214f7011b3041c8c8d017ca764c0fae |
|
BLAKE2b-256 | 5d11261b30f3f91195ce48a8d68f4d9c7459f91282440c75d02dc7bbcddcc4ad |
File details
Details for the file cdk8s_image-0.2.179-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.179-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b5a09d685e5a17cd6b21a0f18b0ea5a99f838a2f49e4c1921e8e9230e2d08d |
|
MD5 | f4739b5eb6bb60f8403867ac06b8aa7c |
|
BLAKE2b-256 | 7aff820b26c984ddad97d4cc1ca7554c69c898a4c99398b3dabd9f4970b9b533 |