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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cdk8s-image-0.2.585.tar.gz
Algorithm Hash digest
SHA256 31216927a682afe60c02e0119ae147ab2e3824a50bcd96f823e33663253902ac
MD5 304e45663b9f95f55b3bbcda5aa47770
BLAKE2b-256 b6800b59fc72bee0c005c00515b423fa899bde6031069bfaccccbabe8911e92e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.585-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d4ac8b33e2a547f953841e3738f80193e0a492852c22d86f39bf224482eb69
MD5 586409f708c35d58a094d6baa74f0306
BLAKE2b-256 4a0d9bfdf13ad73b0ab831b9aa6b450603ae6b302ac05488ee4909720b3d180d

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