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.254.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.254.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.254.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 | 81d9ffd8eb705a585796f7b4c1a2da6dafc0e407895cc02a4917ccfc2a18c6a5 |
|
MD5 | 3bcd750c8fa5862c594495ef4939b909 |
|
BLAKE2b-256 | 8f227329126fc2be2ce1850635f480f50e79cc24bdf981a7292edfc027641723 |
File details
Details for the file cdk8s_image-0.2.254-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.254-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 | e4db074a26347bd0768e67a6e1d85f921323d74f41d090a46be8e3badc11f21f |
|
MD5 | c78923f0871baa47c944afa0a98d4e52 |
|
BLAKE2b-256 | 5a9ee510f3b4da70c265e00d831d581e69af13a5d816f2419c751df9ea863ce8 |