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.304.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.304.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.304.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f16b14b531919be2488578b7d6c1418f4e9cfae477bca9121bfeee4ef0aec1fc |
|
MD5 | f0ba107a92b82532b647e8c6b78aeec9 |
|
BLAKE2b-256 | 3f55f3e200dd239f802f930501e1ababb2b49c8dc864ea311e53861daa390fe0 |
File details
Details for the file cdk8s_image-0.2.304-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.304-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b8cf39b79db92078fc156c0a66b35aa8591bc2d0dd247cab89c704b4278d99 |
|
MD5 | d289cfac5f9b8246c64cb6cd5e76a6fc |
|
BLAKE2b-256 | 59e6b03afb7ba46b993ad69b7f383d6e02b3bb693efcbedd8be6b8c994dcca6f |