{"id":13678518,"url":"https://github.com/cdklabs/cdk-docker-image-deployment","last_synced_at":"2026-04-01T19:02:11.410Z","repository":{"id":58147465,"uuid":"521384946","full_name":"cdklabs/cdk-docker-image-deployment","owner":"cdklabs","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-26T00:44:01.000Z","size":4291,"stargazers_count":87,"open_issues_count":23,"forks_count":15,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-03-26T22:51:32.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdklabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-04T19:05:29.000Z","updated_at":"2026-03-26T00:39:33.000Z","dependencies_parsed_at":"2023-09-24T02:06:28.196Z","dependency_job_id":"459211cd-f065-4a72-9cb0-17af3e43d4b3","html_url":"https://github.com/cdklabs/cdk-docker-image-deployment","commit_stats":{"total_commits":198,"total_committers":7,"mean_commits":"28.285714285714285","dds":"0.045454545454545414","last_synced_commit":"60bae4abcf6dc2d65cc92c81a4abe8a455460a50"},"previous_names":[],"tags_count":986,"template":false,"template_full_name":"amazon-archives/__template_Apache-2.0","purl":"pkg:github/cdklabs/cdk-docker-image-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-docker-image-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-docker-image-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-docker-image-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-docker-image-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdklabs","download_url":"https://codeload.github.com/cdklabs/cdk-docker-image-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-docker-image-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:00:54.485Z","updated_at":"2026-04-01T19:02:11.389Z","avatar_url":"https://github.com/cdklabs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"## CDK Docker Image Deployment\n\nThis module allows you to copy docker image assets to a repository you control.\nThis can be necessary if you want to build a Docker image in one CDK app and consume it in a different app or outside the CDK,\nor if you want to apply a lifecycle policy to all images of a part of your application. \n\n### Getting Started\n\nBelow is a basic example for how to use the `DockerImageDeployment` API:\n\n```ts\nimport * as ecr from 'aws-cdk-lib/aws-ecr';\nimport * as imagedeploy from 'cdk-docker-image-deployment';\n\nconst repo = ecr.Repository.fromRepositoryName(this, 'MyRepository', 'myrepository');\n\nnew imagedeploy.DockerImageDeployment(this, 'ExampleImageDeploymentWithTag', {\n  source: imagedeploy.Source.directory('path/to/directory'),\n  destination: imagedeploy.Destination.ecr(repo, { \n    tag: 'myspecialtag',\n  }),\n});\n```\n\n### Currently Supported Sources\n\n- `Source.directory()`: Supply a path to a local docker image as source.\n\n\u003e Don't see a source listed? See if there is an open [issue](https://github.com/cdklabs/cdk-docker-image-deployment/issues)\n\u003e or [PR](https://github.com/cdklabs/cdk-docker-image-deployment/pulls) already. If not, please open an issue asking for it\n\u003e or better yet, submit a contribution!\n\n### Currently Supported Destinations\n\n- `Destination.ecr(repo, options)`: Send your docker image to an ECR repository in your stack's account.\n\n\u003e Don't see a destination listed? See if there is an open [issue](https://github.com/cdklabs/cdk-docker-image-deployment/issues)\n\u003e or [PR](https://github.com/cdklabs/cdk-docker-image-deployment/pulls) already. If not, please open an issue asking for it\n\u003e or better yet, submit a contribution!\n\n### Under the Hood\n\n1. When this stack is deployed (either via cdk deploy or via CI/CD), the contents of the local Docker image will be archived and uploaded to an intermediary assets ECR Repository using the cdk-assets mechanism.\n\n2. The `DockerImageDeployment` construct synthesizes a CodeBuild Project which uses docker to pull the image from the intermediary repository, tag the image if a tag is provided, and push the image to the destination repository.\n\n3. The deployment will wait until the CodeBuild Project completes successfully before finishing.\n\nThe architecture of this construct can be seen here:\n\n![Construct-Architecture](https://user-images.githubusercontent.com/36202692/187282269-7ab29d3e-192f-470f-9123-5dbb62d9dac3.jpg)\n\n\n## Security\n\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdklabs%2Fcdk-docker-image-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdklabs%2Fcdk-docker-image-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdklabs%2Fcdk-docker-image-deployment/lists"}