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.618.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.618.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.618.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6e13d9832de587efb8fda4d02d4cec32ea4d346652cd27de92e5f487ad583e |
|
MD5 | 8cebd2dd1a38115dbe09e70435d9cf69 |
|
BLAKE2b-256 | 81f0d685b77cbf89b8daff2099062f2c37bcf38d3d10469eaf41e5a29bf5e732 |
File details
Details for the file cdk8s_image-0.2.618-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.618-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74237dc20c43ae472063e3c805b0456a23ae6342e4d25201fe1404b8c58df1d0 |
|
MD5 | 5356fa46d17535670f08ad1ec269cf30 |
|
BLAKE2b-256 | e4f7d20022357e24fab1a85b53400a125f1447109f9933d82b54b065829d8b18 |