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.445.tar.gz
(27.9 kB
view details)
Built Distribution
File details
Details for the file cdk8s-image-0.2.445.tar.gz
.
File metadata
- Download URL: cdk8s-image-0.2.445.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6243180be0eea5648d474cb7cb7f2602bdce673bb3732dd0a10faccb3559ef |
|
MD5 | a513ce81e6c46e456cda1689eeea2bc4 |
|
BLAKE2b-256 | 4afab13dca3681e096aaa35af69f51507117de9bd57e45fc1daa173bd628f055 |
File details
Details for the file cdk8s_image-0.2.445-py3-none-any.whl
.
File metadata
- Download URL: cdk8s_image-0.2.445-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11dc68f3cc544a05afc936eadee76fbc70ba0dcbdce17b7e562293978825fc37 |
|
MD5 | f067b713247a0650754e3d187d2ea1fb |
|
BLAKE2b-256 | 1342dbe4205dd78af5bca6d08cd01619efa5c171db99f9631d7ece62debd7634 |