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

Uploaded Source

Built Distribution

cdk8s_image-0.2.506-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.506.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

Hashes for cdk8s-image-0.2.506.tar.gz
Algorithm Hash digest
SHA256 459e5144f97305da0c8c198f006278ff2638d95e4590c3c4e4fff6213822198e
MD5 2a859ef6e05fb74ca914c746f4a8ebdb
BLAKE2b-256 1c8b2a0b91c4f3b567f1f7bdaa97e7a639c8cff96409b8614198d31ffd65955c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.506-py3-none-any.whl
Algorithm Hash digest
SHA256 8fda5714cf21a16eb38c38767e3e047470f809df8631b9de368f2acb485af27b
MD5 8c55e256f7e2dd53cd3e4934e7cb062b
BLAKE2b-256 e70ce916281ef90d03fde5c2a7ae9a97d715bfe9b1f1506ebf7bf5b6a099de03

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