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.140.tar.gz
(25.6 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.140.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.140.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff985a335de6a6a7cee4ade5d73330ef5dce18200cdcd3081e42f366517716b |
|
MD5 | 606964f73f458bb5994e7dfe2f3f02cd |
|
BLAKE2b-256 | 4d68dfe13f519511de4337a1c62b320c3fbeb792c3719202e43f5e05081eef52 |
File details
Details for the file cdk8s_image-0.2.140-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.140-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b0a548a3e066e2c2a7369c9c6c94d37eb92b5298502e40b6e98365cb704e5a |
|
MD5 | fb02acb3b11e61cd1c02d3832f355a27 |
|
BLAKE2b-256 | d2878ebc675818a3abe3c0ba327910cd30967417e9f4ec7e2d4ab9a1cbc28069 |