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.235.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.235.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.235.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a2c9b81311885811e9554662cbe9dfbe003d244d4cc74311f23f9fcf67d15c |
|
MD5 | ceb8f8ea91052fdfbd32ca62c1360aa3 |
|
BLAKE2b-256 | e1dc939bc451a27a91549d611a0c3cde95acb1e4c31b4c3341880a93cd7f1d0c |
File details
Details for the file cdk8s_image-0.2.235-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.235-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.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df30bf01657a9349e32840fcb3a4d496e8c0971fb1c44d1cf49f756511b528f |
|
MD5 | 8700ef397a1716aa0f5916cf0c4b8d4d |
|
BLAKE2b-256 | 017a2deae688996e57490660bfdc038bfc8950329bc4f8e3df7e6ddbeded531f |