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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.614.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.614.tar.gz
Algorithm Hash digest
SHA256 7bf4f7bdaf95336a2433ec3e5f5c47d8578193aa6734d990a71b9e7352dd74e3
MD5 c3ba4cdaff6fee24231315e2609ece57
BLAKE2b-256 bbf1b4e3804e1c37aab45e54185886cb54f6310f44f078037bd97efa10c46d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.614-py3-none-any.whl
Algorithm Hash digest
SHA256 0e98421713e65be3a2ab4687ea905b837e93215d1b72f3cbb7d334711f3c3c62
MD5 80fa31b194f16d1a2ef7bdc6a7991b52
BLAKE2b-256 1820657c5e0c72d877288bff85f7ef9fae39f6b9bee302e3c4a7368fa8f6af4a

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