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.105.tar.gz
(25.1 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.105.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.105.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b2e27fb9f04ffc0fc1975aa00d3eb83c05bc033055cc4b3973224eaafd91641 |
|
MD5 | 56bdbfd5f0b4d52b0f27ecf250aeac69 |
|
BLAKE2b-256 | 5605fb6fbbbabc00338b7fe4e231d0b4eaa6aba9cc9e45134d5685b40c90e2bd |
File details
Details for the file cdk8s_image-0.2.105-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.105-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2acc3545cee9fdb3d638120f9e156464aadf7c551440602d9de0b4b19088944 |
|
MD5 | 90de7af1251cea6fc8dabb8261244f3e |
|
BLAKE2b-256 | 7f73fc1687a1f270990a5f33404bd1176e0d4302a36320c19cadc3576f6b2ca1 |