[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)
# @cloudcomponents/cdk-container-registry
[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)
[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)
[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-container-registry)
[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-container-registry/)
> Registry for container images
## Install
TypeScript/JavaScript:
```bash
npm i @cloudcomponents/cdk-container-registry
```
Python:
```bash
pip install cloudcomponents.cdk-container-registry
```
## How to use
```python
import { ImageRepository, Severity } from '@cloudcomponents/cdk-container-registry';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Topic } from 'aws-cdk-lib/aws-sns';
import { EmailSubscription } from 'aws-cdk-lib/aws-sns-subscriptions';
import { Construct } from 'constructs';
export class ImageRepositoryStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const alarmTopic = new Topic(this, 'Topic');
alarmTopic.addSubscription(
new EmailSubscription(process.env.DEVSECOPS_TEAM_EMAIL as string),
);
const imageRepository = new ImageRepository(this, 'ImageRepository', {
forceDelete: true, //Only for tests
imageScanOnPush: true,
});
imageRepository.onFinding('finding', {
severity: Severity.HIGH,
alarmTopic,
});
}
}
```
## API Reference
See [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-container-registry/API.md).
## Example
See more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).
## License
[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-container-registry/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/cloudcomponents/cdk-constructs",
"name": "cloudcomponents.cdk-container-registry",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "hupe1980",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/2e/41/1f55cb3e78044f7c628617606e08ce496c13d2ec1c58ef947cb878aad97f/cloudcomponents.cdk-container-registry-2.3.0.tar.gz",
"platform": null,
"description": "[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/cdk-container-registry\n\n[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)\n[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)\n[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-container-registry)\n[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-container-registry/)\n\n> Registry for container images\n\n## Install\n\nTypeScript/JavaScript:\n\n```bash\nnpm i @cloudcomponents/cdk-container-registry\n```\n\nPython:\n\n```bash\npip install cloudcomponents.cdk-container-registry\n```\n\n## How to use\n\n```python\nimport { ImageRepository, Severity } from '@cloudcomponents/cdk-container-registry';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { Topic } from 'aws-cdk-lib/aws-sns';\nimport { EmailSubscription } from 'aws-cdk-lib/aws-sns-subscriptions';\nimport { Construct } from 'constructs';\n\nexport class ImageRepositoryStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n\n const alarmTopic = new Topic(this, 'Topic');\n\n alarmTopic.addSubscription(\n new EmailSubscription(process.env.DEVSECOPS_TEAM_EMAIL as string),\n );\n\n const imageRepository = new ImageRepository(this, 'ImageRepository', {\n forceDelete: true, //Only for tests\n imageScanOnPush: true,\n });\n\n imageRepository.onFinding('finding', {\n severity: Severity.HIGH,\n alarmTopic,\n });\n }\n}\n```\n\n## API Reference\n\nSee [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-container-registry/API.md).\n\n## Example\n\nSee more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).\n\n## License\n\n[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-container-registry/LICENSE)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Registry for container images",
"version": "2.3.0",
"project_urls": {
"Homepage": "https://github.com/cloudcomponents/cdk-constructs",
"Source": "https://github.com/cloudcomponents/cdk-constructs.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ac3bbfe72e78870907a50d110ebdf7e44e9fd3babbdd6585eefd9bae1156ba78",
"md5": "0db0dd1fce4fc0734a668db324c7aef7",
"sha256": "6075c0f6783da209df79fb1619a3179f64296948f2cc12aa8a4dc55c54c0e322"
},
"downloads": -1,
"filename": "cloudcomponents.cdk_container_registry-2.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0db0dd1fce4fc0734a668db324c7aef7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 1338081,
"upload_time": "2024-04-17T18:36:01",
"upload_time_iso_8601": "2024-04-17T18:36:01.763118Z",
"url": "https://files.pythonhosted.org/packages/ac/3b/bfe72e78870907a50d110ebdf7e44e9fd3babbdd6585eefd9bae1156ba78/cloudcomponents.cdk_container_registry-2.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2e411f55cb3e78044f7c628617606e08ce496c13d2ec1c58ef947cb878aad97f",
"md5": "18c9e434af6bcc2a9b4c8e2635f7f3ff",
"sha256": "a64f69a3a06aed84949fc3d9b9131d412610254772ff2b3ee01433e3882197c1"
},
"downloads": -1,
"filename": "cloudcomponents.cdk-container-registry-2.3.0.tar.gz",
"has_sig": false,
"md5_digest": "18c9e434af6bcc2a9b4c8e2635f7f3ff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 1339023,
"upload_time": "2024-04-17T18:36:12",
"upload_time_iso_8601": "2024-04-17T18:36:12.728061Z",
"url": "https://files.pythonhosted.org/packages/2e/41/1f55cb3e78044f7c628617606e08ce496c13d2ec1c58ef947cb878aad97f/cloudcomponents.cdk-container-registry-2.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-17 18:36:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cloudcomponents",
"github_project": "cdk-constructs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cloudcomponents.cdk-container-registry"
}