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

Uploaded Source

Built Distribution

cdk8s_image-0.2.160-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.160.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for cdk8s-image-0.2.160.tar.gz
Algorithm Hash digest
SHA256 27da07f87c8f403678c42d7946ae57fbeb10099ee5e7544141bb2f6b81583b5c
MD5 c4b9d5325b27c57605105dc7750df617
BLAKE2b-256 2423f6edd296b334ecaa151420b37ab0bf7314dd8b02dcd40c92cb5db4ca4f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.160-py3-none-any.whl
Algorithm Hash digest
SHA256 988d0d646e23a4e735c962c08a434424045b75b7fd83db16723f70ed782b6e04
MD5 37f26292becd6c69110a257116396575
BLAKE2b-256 888057abc7715700034a9f561ca13e6735de11fd57a0752847334c2f06a5dc60

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