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.532.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.532.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.532.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860f432ce2b513fe058458eb30687e523cea23f13e7606098def544eca96d7f5 |
|
MD5 | 339e64c7fb747ee0d631f5a76383002f |
|
BLAKE2b-256 | c44972a491954d3ab3ede7335add9cb1875ba2b2bc240c5c9d9f2c97f2c75e38 |
File details
Details for the file cdk8s_image-0.2.532-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.532-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f311773e9b8e6d2873ceecb6d16f1155c19df899111cd0c37d84ca7d6e2c36e2 |
|
MD5 | 397b540e148392dcc997878b3c638ce5 |
|
BLAKE2b-256 | d3eff2fe33ab83ee31d55e9ae75305ff170af9a54200d83a2a9626227f3b410e |