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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.501.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.501.tar.gz
Algorithm Hash digest
SHA256 7f90b7876b16786fa0890381eb2cccd3d9a64fec4a4e633719712403bdf4a174
MD5 07746bbf005f76711d704f24bcae4e9d
BLAKE2b-256 c1b4cbdaf2c2a2e3029edb562fe0eb1ad37c060266c933d515c25cf075d3db47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.501-py3-none-any.whl
Algorithm Hash digest
SHA256 1d5ecd49d74295e039bf23aabea83ccda08c723c399cac8148b3b4a28b49309c
MD5 cfe7b4bf6befc8dcfe227ea54071255e
BLAKE2b-256 0eed3f33e018ef00b91548a7a3478364fe8d622f147ff28a7791570d94c246a8

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