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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.605.tar.gz
  • Upload date:
  • Size: 28.1 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.605.tar.gz
Algorithm Hash digest
SHA256 dae59f59346af07bfd7989a0f79ebaa2edac60ac77eb880ad7dddc88343517f5
MD5 63573c2fb54eacae5253e19672d56097
BLAKE2b-256 995f61ccd6d7c10cee3aacd6cc21f6c52275096dce1246727f3cdca63a99b927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.605-py3-none-any.whl
Algorithm Hash digest
SHA256 82ec17dbbd94cfcdc58968cda080ff3a9240e6b983276bb81fff01b1ef3e1fda
MD5 963bafcf744b6d4f1fb9c76694b8b3d3
BLAKE2b-256 cb4db9da52083b5ef7b36bed6ad2e722088965948c6e3d332e5e0afa6f265f2f

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