Skip to main content

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.616.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

cdk8s_image-0.2.616-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file cdk8s-image-0.2.616.tar.gz.

File metadata

  • Download URL: cdk8s-image-0.2.616.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for cdk8s-image-0.2.616.tar.gz
Algorithm Hash digest
SHA256 d75f2b39084f265b1485a4bdc95096e7f4394e0c05cd4b684b926cc6591bdbe7
MD5 57f32bbc5d8e7864f30fddafe3ba609d
BLAKE2b-256 1e58de26dc2ebd98ece540aa7d4f39450616488a3c4263df858ab11afe13e6f3

See more details on using hashes here.

File details

Details for the file cdk8s_image-0.2.616-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk8s_image-0.2.616-py3-none-any.whl
Algorithm Hash digest
SHA256 4ead0e02e2fb57890fa6f018e66b58a110de922d0cd43fffb51d5b037326171a
MD5 194c6a209948b1ebc46631bff5143472
BLAKE2b-256 51a7d99ecb8dad3ce80d25d35936aa045cfe9594bbc5294326781d28f75d872c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page