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

Uploaded Source

Built Distribution

cdk8s_image-0.2.620-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cdk8s-image-0.2.620.tar.gz
Algorithm Hash digest
SHA256 42bf37f9da63912f91568021ab7bad9a9c3bd84b6fa2cbda94777f93af4b20b1
MD5 3ccabdee7680dcd98b273a0b7ca0e201
BLAKE2b-256 c3017cda1dd59355ce8a6d1e3a5572c7b86ac00f9c4a6726473c455c19a74fe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.620-py3-none-any.whl
Algorithm Hash digest
SHA256 15e54f92c2c90c821a72d631cbcb90fd1a8edeeb99d913b6cd2e6555f9134016
MD5 9aebbe96b8205926b3a1b38ef41059ec
BLAKE2b-256 43f9af4bc024b02035ec005f9716cc31dc84c0abe8c3090764b99b65d8b2918a

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