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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk8s-image-0.2.523.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.523.tar.gz
Algorithm Hash digest
SHA256 3b10e9897e3d461c205a95ec180133b6bb8e3ba42c225bdc8cffcc6235f326c0
MD5 ac214ba304abb5686b46aa568d5e91a5
BLAKE2b-256 ba5f693769b3e2574a23812dd855dc3b5f9eca356bf001820b481c7f7f4d8697

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk8s_image-0.2.523-py3-none-any.whl
Algorithm Hash digest
SHA256 d12eb4a884d9e915a457b78ced98eef995307ea9e3eae2514d98b763c8e52cb0
MD5 19eba7e10fab6d3513e16ccd3d8c14a7
BLAKE2b-256 419ccbb41ff57de9c46c1ea9462c251557611691cef14b910b7e2d7a9b447366

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