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.438.tar.gz
(27.8 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.438.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.438.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faeca507c6d292ae480de87fa55f473a056495781a8f1959bd932d0f8fe3a990 |
|
MD5 | ea2da9798368a27a592a32fb997f4030 |
|
BLAKE2b-256 | 5d51850f1a3171b8f089b82543ebb469c4d54f97d7bc35c47afb5816578eb233 |
File details
Details for the file cdk8s_image-0.2.438-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.438-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9820c12b4f7dcba696f9c4f77d5ea206e43f1b7beca5530c88f10aa503f620da |
|
MD5 | e32a4405f4b2961bc3da524d77847b68 |
|
BLAKE2b-256 | 9634891c056e73f1b9fca324d9badb120fd0e9866c074ead1c0390fd700d93d5 |