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.528.tar.gz
(28.0 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.528.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.528.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d693f23b3e74566d8b08e107bc9d33ba9d0496d6871c391d36d53237d750f33 |
|
MD5 | 61fc7bc598403c377773e8693fecc369 |
|
BLAKE2b-256 | d8ba0cd3a17dc70494bb0c90e6aa8918eb86afc9d1307aad7f0033dc293e6e03 |
File details
Details for the file cdk8s_image-0.2.528-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.528-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 | 0c8c82224202aad3343d3ec764a78f675042470df8b050a0c6300cff00c4b2a0 |
|
MD5 | 3baeb5eee5006aade2315326bb37f92f |
|
BLAKE2b-256 | 3ff486f139612567dfb8a481c78ab53e7430b95ca85712a6c1020d2992e905e2 |