summaryrefslogtreecommitdiff
path: root/python-cdk-kaniko.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-cdk-kaniko.spec')
-rw-r--r--python-cdk-kaniko.spec278
1 files changed, 278 insertions, 0 deletions
diff --git a/python-cdk-kaniko.spec b/python-cdk-kaniko.spec
new file mode 100644
index 0000000..640643e
--- /dev/null
+++ b/python-cdk-kaniko.spec
@@ -0,0 +1,278 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cdk-kaniko
+Version: 2.0.7
+Release: 1
+Summary: CDK construct library that allows you to build docker images with kaniko in AWS Fargate
+License: Apache-2.0
+URL: https://github.com/pahud/cdk-kaniko.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/22/c1/d9e7410271732f5a4dd84a39e17258641b55291429f50957d4af20de8913/cdk-kaniko-2.0.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-aws-cdk-lib
+Requires: python3-cdk-fargate-run-task
+Requires: python3-constructs
+Requires: python3-jsii
+Requires: python3-publication
+
+%description
+[![NPM version](https://badge.fury.io/js/cdk-kaniko.svg)](https://badge.fury.io/js/cdk-kaniko)
+[![PyPI version](https://badge.fury.io/py/cdk-kaniko.svg)](https://badge.fury.io/py/cdk-kaniko)
+[![Release](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml/badge.svg)](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml)
+
+# `cdk-kaniko`
+
+Build images with `kaniko` in **AWS Fargate**
+
+# About
+
+`cdk-kaniko` is a CDK construct library that allows you to build images with [**kaniko**](https://github.com/GoogleContainerTools/kaniko) in **AWS Fargate**. Inspired from the blog post - [Building container images on Amazon ECS on AWS Fargate](https://aws.amazon.com/tw/blogs/containers/building-container-images-on-amazon-ecs-on-aws-fargate/) by *Re Alvarez-Parmar* and *Olly Pomeroy*, this library aims to abstract away all the infrastructure provisioning and configuration with minimal IAM policies required and allow you to focus on the high level CDK constructs. Under the covers, `cdk-kaniko` leverages the [cdk-fargate-run-task](https://github.com/pahud/cdk-fargate-run-task) so you can build the image just once or schedule the building periodically.
+
+# Install
+
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+```sh
+// for CDKv2
+npm install cdk-kaniko
+or
+npm install cdk-kaniko@latest
+
+// for CDKv1
+npm install cdk-kaniko@cdkv1
+```
+
+# Sample
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+const app = new cdk.App();
+
+const stack = new cdk.Stack(app, 'my-stack-dev');
+
+const kaniko = new Kaniko(stack, 'KanikoDemo', {
+ context: 'git://github.com/pahud/vscode.git',
+ contextSubPath: './.devcontainer',
+});
+
+// build it once
+kaniko.buildImage('once');
+
+// schedule the build every day 0:00AM
+kaniko.buildImage('everyday', Schedule.cron({
+ minute: '0',
+ hour: '0',
+}));
+```
+
+# fargate spot support
+
+Use `fargateSpot` to enable the `FARGATE_SPOT` capacity provider to provision the fargate tasks.
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+new Kaniko(stack, 'KanikoDemo', {
+ context,
+ contextSubPath,
+ fargateSpot: true,
+});
+```
+
+# Note
+
+Please note the image building could take some minutes depending on the complexity of the provided `Dockerfile`. On deployment completed, you can check and tail the **AWS Fargate** task logs from the **AWS CloudWatch Logs** to view all the build output.
+
+
+
+
+%package -n python3-cdk-kaniko
+Summary: CDK construct library that allows you to build docker images with kaniko in AWS Fargate
+Provides: python-cdk-kaniko
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cdk-kaniko
+[![NPM version](https://badge.fury.io/js/cdk-kaniko.svg)](https://badge.fury.io/js/cdk-kaniko)
+[![PyPI version](https://badge.fury.io/py/cdk-kaniko.svg)](https://badge.fury.io/py/cdk-kaniko)
+[![Release](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml/badge.svg)](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml)
+
+# `cdk-kaniko`
+
+Build images with `kaniko` in **AWS Fargate**
+
+# About
+
+`cdk-kaniko` is a CDK construct library that allows you to build images with [**kaniko**](https://github.com/GoogleContainerTools/kaniko) in **AWS Fargate**. Inspired from the blog post - [Building container images on Amazon ECS on AWS Fargate](https://aws.amazon.com/tw/blogs/containers/building-container-images-on-amazon-ecs-on-aws-fargate/) by *Re Alvarez-Parmar* and *Olly Pomeroy*, this library aims to abstract away all the infrastructure provisioning and configuration with minimal IAM policies required and allow you to focus on the high level CDK constructs. Under the covers, `cdk-kaniko` leverages the [cdk-fargate-run-task](https://github.com/pahud/cdk-fargate-run-task) so you can build the image just once or schedule the building periodically.
+
+# Install
+
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+```sh
+// for CDKv2
+npm install cdk-kaniko
+or
+npm install cdk-kaniko@latest
+
+// for CDKv1
+npm install cdk-kaniko@cdkv1
+```
+
+# Sample
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+const app = new cdk.App();
+
+const stack = new cdk.Stack(app, 'my-stack-dev');
+
+const kaniko = new Kaniko(stack, 'KanikoDemo', {
+ context: 'git://github.com/pahud/vscode.git',
+ contextSubPath: './.devcontainer',
+});
+
+// build it once
+kaniko.buildImage('once');
+
+// schedule the build every day 0:00AM
+kaniko.buildImage('everyday', Schedule.cron({
+ minute: '0',
+ hour: '0',
+}));
+```
+
+# fargate spot support
+
+Use `fargateSpot` to enable the `FARGATE_SPOT` capacity provider to provision the fargate tasks.
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+new Kaniko(stack, 'KanikoDemo', {
+ context,
+ contextSubPath,
+ fargateSpot: true,
+});
+```
+
+# Note
+
+Please note the image building could take some minutes depending on the complexity of the provided `Dockerfile`. On deployment completed, you can check and tail the **AWS Fargate** task logs from the **AWS CloudWatch Logs** to view all the build output.
+
+
+
+
+%package help
+Summary: Development documents and examples for cdk-kaniko
+Provides: python3-cdk-kaniko-doc
+%description help
+[![NPM version](https://badge.fury.io/js/cdk-kaniko.svg)](https://badge.fury.io/js/cdk-kaniko)
+[![PyPI version](https://badge.fury.io/py/cdk-kaniko.svg)](https://badge.fury.io/py/cdk-kaniko)
+[![Release](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml/badge.svg)](https://github.com/pahud/cdk-kaniko/actions/workflows/release.yml)
+
+# `cdk-kaniko`
+
+Build images with `kaniko` in **AWS Fargate**
+
+# About
+
+`cdk-kaniko` is a CDK construct library that allows you to build images with [**kaniko**](https://github.com/GoogleContainerTools/kaniko) in **AWS Fargate**. Inspired from the blog post - [Building container images on Amazon ECS on AWS Fargate](https://aws.amazon.com/tw/blogs/containers/building-container-images-on-amazon-ecs-on-aws-fargate/) by *Re Alvarez-Parmar* and *Olly Pomeroy*, this library aims to abstract away all the infrastructure provisioning and configuration with minimal IAM policies required and allow you to focus on the high level CDK constructs. Under the covers, `cdk-kaniko` leverages the [cdk-fargate-run-task](https://github.com/pahud/cdk-fargate-run-task) so you can build the image just once or schedule the building periodically.
+
+# Install
+
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+```sh
+// for CDKv2
+npm install cdk-kaniko
+or
+npm install cdk-kaniko@latest
+
+// for CDKv1
+npm install cdk-kaniko@cdkv1
+```
+
+# Sample
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+const app = new cdk.App();
+
+const stack = new cdk.Stack(app, 'my-stack-dev');
+
+const kaniko = new Kaniko(stack, 'KanikoDemo', {
+ context: 'git://github.com/pahud/vscode.git',
+ contextSubPath: './.devcontainer',
+});
+
+// build it once
+kaniko.buildImage('once');
+
+// schedule the build every day 0:00AM
+kaniko.buildImage('everyday', Schedule.cron({
+ minute: '0',
+ hour: '0',
+}));
+```
+
+# fargate spot support
+
+Use `fargateSpot` to enable the `FARGATE_SPOT` capacity provider to provision the fargate tasks.
+
+```python
+# Example automatically generated from non-compiling source. May contain errors.
+new Kaniko(stack, 'KanikoDemo', {
+ context,
+ contextSubPath,
+ fargateSpot: true,
+});
+```
+
+# Note
+
+Please note the image building could take some minutes depending on the complexity of the provided `Dockerfile`. On deployment completed, you can check and tail the **AWS Fargate** task logs from the **AWS CloudWatch Logs** to view all the build output.
+
+
+
+
+%prep
+%autosetup -n cdk-kaniko-2.0.7
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-cdk-kaniko -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.7-1
+- Package Spec generated