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.187.tar.gz
(26.8 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.187.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.187.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 | 85812e0cd1b2366b3a277d4b525cd7cdd60b3837de6345a001c9753a2ab25fb0 |
|
MD5 | c4d65dcbbb8b2d7bfd7259bdd98326a7 |
|
BLAKE2b-256 | e12eab373f6da0311b23574357a0c91f89b8b0c348b36b57a6f77c1592f72003 |
File details
Details for the file cdk8s_image-0.2.187-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.187-py3-none-any.whl
- Upload date:
- Size: 25.4 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 | dd6287bf9798382b36eadbcb2c3c7723980013d853c61cc40ff01b2293dac277 |
|
MD5 | be396adba24c3fa780d1d71e35cdaef0 |
|
BLAKE2b-256 | f9fb3034d464fc7110b1b2aa5594c5cf39e3a75d6c9af2de8a41f8e431b9b911 |