summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 11:28:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 11:28:08 +0000
commit53f7c24c10cfa8e88efcc43e5527275096875586 (patch)
tree3c331c4561fde130a9ae395cae624e9605d1b780
parent0952a53af56dfae4960c06bd9daeee317751374e (diff)
automatic import of python-ansible-benderopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-ansible-bender.spec289
-rw-r--r--sources1
3 files changed, 291 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..36770da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ansible-bender-0.10.1.tar.gz
diff --git a/python-ansible-bender.spec b/python-ansible-bender.spec
new file mode 100644
index 0000000..1e98c48
--- /dev/null
+++ b/python-ansible-bender.spec
@@ -0,0 +1,289 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ansible-bender
+Version: 0.10.1
+Release: 1
+Summary: A tool which builds container images using Ansible playbooks
+License: MIT
+URL: https://github.com/ansible-community/ansible-bender
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/d5/21a2f32d2fcd76dd2064b697b5fc40ab4a2b3cd1cf3128e23be6fe09c776/ansible-bender-0.10.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyYAML
+Requires: python3-tabulate
+Requires: python3-jsonschema
+Requires: python3-setuptools
+Requires: python3-pytest
+Requires: python3-flexmock
+Requires: python3-pytest-cov
+
+%description
+# ansible-bender
+[![PyPI version](https://badge.fury.io/py/ansible-bender.svg)](https://badge.fury.io/py/ansible-bender)
+![GitHub Release Date](https://img.shields.io/github/release-date/ansible-community/ansible-bender?label=Latest%20release)
+![PyPI - Status](https://img.shields.io/pypi/status/ansible-bender)
+![GitHub](https://img.shields.io/github/license/ansible-community/ansible-bender)
+![PyPI - Downloads](https://img.shields.io/pypi/dm/ansible-bender)
+
+This tool bends containers using
+[Ansible](https://github.com/ansible/ansible)
+[playbooks](https://docs.ansible.com/ansible/latest/user_guide/playbooks.html)
+and turns them into container images. It has a pluggable builder selection —
+it is up to you to pick the tool which will be used to construct your container
+image. Right now the only supported builder is
+[buildah](https://github.com/containers/buildah).
+[More](http://github.com/ansible-community/ansible-bender/issues/25) [to
+come](http://github.com/ansible-community/ansible-bender/issues/26) in the future.
+Ansible-bender (ab) relies on [Ansible connection
+plugins](https://docs.ansible.com/ansible/latest/plugins/connection.html) for
+performing builds.
+
+tl;dr Ansible is the frontend, buildah is the backend.
+
+The concept is described in following blog posts:
+* [Building containers with buildah and ansible](https://blog.tomecek.net/post/building-containers-with-buildah-and-ansible/).
+* [Ansible and Podman Can Play Together Now](https://blog.tomecek.net/post/ansible-and-podman-can-play-together-now/).
+
+
+## Looking for maintainers ❤
+
+[This project doesn't have an active maintainer right now that](https://github.com/ansible-community/ansible-bender/issues/282) would watch issues daily.
+
+If you are a user of ansible-bender and are familiar with Python, please consider becoming a maintainer.
+
+
+## Features
+
+* You can build your container images with buildah as a backend.
+* Ansible playbook is your build recipe.
+* You are able to set various image metadata via CLI or as specific Ansible vars:
+ * working directory
+ * environment variables
+ * labels
+ * user
+ * default command
+ * exposed ports
+* You can do volume mounts during build.
+* Caching mechanism:
+ * Every task result is cached as a container image layer.
+ * You can turn this off with `--no-cache`.
+ * You can disable caching from a certain point by adding a tag `no-cache` to a task.
+* You can stop creating new image layers by adding tag `stop-layering` to a task.
+* If an image build fails, it's committed and named with a suffix `-[TIMESTAMP]-failed` (so
+ you can take a look inside and resolve the issue).
+* The tool tries to find python interpreter inside the base image.
+* You can push images you built to remote locations such as:
+ * a registry, a tarball, docker daemon, ...
+ * [podman push](https://github.com/containers/podman/blob/main/docs/source/markdown/podman-push.1.md) is used to perform the push.
+
+
+## Documentation
+
+You can read more about this project in the documentation:
+* [Documentation home](https://ansible-community.github.io/ansible-bender/build/html/index.html)
+* [Interface](https://ansible-community.github.io/ansible-bender/build/html/interface.html)
+* [Installation](https://ansible-community.github.io/ansible-bender/build/html/installation.html)
+* [Configuration](https://ansible-community.github.io/ansible-bender/build/html/configuration.html)
+* [Usage](https://ansible-community.github.io/ansible-bender/build/html/usage.html)
+* [Caching and Layering mechanism](https://ansible-community.github.io/ansible-bender/build/html/cacheandlayer.html)
+* [Contribution guide](https://ansible-community.github.io/ansible-bender/build/html/contributing.html)
+* [Ansible-bender in OKD](https://ansible-community.github.io/ansible-bender/build/html/okd.html)
+
+
+%package -n python3-ansible-bender
+Summary: A tool which builds container images using Ansible playbooks
+Provides: python-ansible-bender
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ansible-bender
+# ansible-bender
+[![PyPI version](https://badge.fury.io/py/ansible-bender.svg)](https://badge.fury.io/py/ansible-bender)
+![GitHub Release Date](https://img.shields.io/github/release-date/ansible-community/ansible-bender?label=Latest%20release)
+![PyPI - Status](https://img.shields.io/pypi/status/ansible-bender)
+![GitHub](https://img.shields.io/github/license/ansible-community/ansible-bender)
+![PyPI - Downloads](https://img.shields.io/pypi/dm/ansible-bender)
+
+This tool bends containers using
+[Ansible](https://github.com/ansible/ansible)
+[playbooks](https://docs.ansible.com/ansible/latest/user_guide/playbooks.html)
+and turns them into container images. It has a pluggable builder selection —
+it is up to you to pick the tool which will be used to construct your container
+image. Right now the only supported builder is
+[buildah](https://github.com/containers/buildah).
+[More](http://github.com/ansible-community/ansible-bender/issues/25) [to
+come](http://github.com/ansible-community/ansible-bender/issues/26) in the future.
+Ansible-bender (ab) relies on [Ansible connection
+plugins](https://docs.ansible.com/ansible/latest/plugins/connection.html) for
+performing builds.
+
+tl;dr Ansible is the frontend, buildah is the backend.
+
+The concept is described in following blog posts:
+* [Building containers with buildah and ansible](https://blog.tomecek.net/post/building-containers-with-buildah-and-ansible/).
+* [Ansible and Podman Can Play Together Now](https://blog.tomecek.net/post/ansible-and-podman-can-play-together-now/).
+
+
+## Looking for maintainers ❤
+
+[This project doesn't have an active maintainer right now that](https://github.com/ansible-community/ansible-bender/issues/282) would watch issues daily.
+
+If you are a user of ansible-bender and are familiar with Python, please consider becoming a maintainer.
+
+
+## Features
+
+* You can build your container images with buildah as a backend.
+* Ansible playbook is your build recipe.
+* You are able to set various image metadata via CLI or as specific Ansible vars:
+ * working directory
+ * environment variables
+ * labels
+ * user
+ * default command
+ * exposed ports
+* You can do volume mounts during build.
+* Caching mechanism:
+ * Every task result is cached as a container image layer.
+ * You can turn this off with `--no-cache`.
+ * You can disable caching from a certain point by adding a tag `no-cache` to a task.
+* You can stop creating new image layers by adding tag `stop-layering` to a task.
+* If an image build fails, it's committed and named with a suffix `-[TIMESTAMP]-failed` (so
+ you can take a look inside and resolve the issue).
+* The tool tries to find python interpreter inside the base image.
+* You can push images you built to remote locations such as:
+ * a registry, a tarball, docker daemon, ...
+ * [podman push](https://github.com/containers/podman/blob/main/docs/source/markdown/podman-push.1.md) is used to perform the push.
+
+
+## Documentation
+
+You can read more about this project in the documentation:
+* [Documentation home](https://ansible-community.github.io/ansible-bender/build/html/index.html)
+* [Interface](https://ansible-community.github.io/ansible-bender/build/html/interface.html)
+* [Installation](https://ansible-community.github.io/ansible-bender/build/html/installation.html)
+* [Configuration](https://ansible-community.github.io/ansible-bender/build/html/configuration.html)
+* [Usage](https://ansible-community.github.io/ansible-bender/build/html/usage.html)
+* [Caching and Layering mechanism](https://ansible-community.github.io/ansible-bender/build/html/cacheandlayer.html)
+* [Contribution guide](https://ansible-community.github.io/ansible-bender/build/html/contributing.html)
+* [Ansible-bender in OKD](https://ansible-community.github.io/ansible-bender/build/html/okd.html)
+
+
+%package help
+Summary: Development documents and examples for ansible-bender
+Provides: python3-ansible-bender-doc
+%description help
+# ansible-bender
+[![PyPI version](https://badge.fury.io/py/ansible-bender.svg)](https://badge.fury.io/py/ansible-bender)
+![GitHub Release Date](https://img.shields.io/github/release-date/ansible-community/ansible-bender?label=Latest%20release)
+![PyPI - Status](https://img.shields.io/pypi/status/ansible-bender)
+![GitHub](https://img.shields.io/github/license/ansible-community/ansible-bender)
+![PyPI - Downloads](https://img.shields.io/pypi/dm/ansible-bender)
+
+This tool bends containers using
+[Ansible](https://github.com/ansible/ansible)
+[playbooks](https://docs.ansible.com/ansible/latest/user_guide/playbooks.html)
+and turns them into container images. It has a pluggable builder selection —
+it is up to you to pick the tool which will be used to construct your container
+image. Right now the only supported builder is
+[buildah](https://github.com/containers/buildah).
+[More](http://github.com/ansible-community/ansible-bender/issues/25) [to
+come](http://github.com/ansible-community/ansible-bender/issues/26) in the future.
+Ansible-bender (ab) relies on [Ansible connection
+plugins](https://docs.ansible.com/ansible/latest/plugins/connection.html) for
+performing builds.
+
+tl;dr Ansible is the frontend, buildah is the backend.
+
+The concept is described in following blog posts:
+* [Building containers with buildah and ansible](https://blog.tomecek.net/post/building-containers-with-buildah-and-ansible/).
+* [Ansible and Podman Can Play Together Now](https://blog.tomecek.net/post/ansible-and-podman-can-play-together-now/).
+
+
+## Looking for maintainers ❤
+
+[This project doesn't have an active maintainer right now that](https://github.com/ansible-community/ansible-bender/issues/282) would watch issues daily.
+
+If you are a user of ansible-bender and are familiar with Python, please consider becoming a maintainer.
+
+
+## Features
+
+* You can build your container images with buildah as a backend.
+* Ansible playbook is your build recipe.
+* You are able to set various image metadata via CLI or as specific Ansible vars:
+ * working directory
+ * environment variables
+ * labels
+ * user
+ * default command
+ * exposed ports
+* You can do volume mounts during build.
+* Caching mechanism:
+ * Every task result is cached as a container image layer.
+ * You can turn this off with `--no-cache`.
+ * You can disable caching from a certain point by adding a tag `no-cache` to a task.
+* You can stop creating new image layers by adding tag `stop-layering` to a task.
+* If an image build fails, it's committed and named with a suffix `-[TIMESTAMP]-failed` (so
+ you can take a look inside and resolve the issue).
+* The tool tries to find python interpreter inside the base image.
+* You can push images you built to remote locations such as:
+ * a registry, a tarball, docker daemon, ...
+ * [podman push](https://github.com/containers/podman/blob/main/docs/source/markdown/podman-push.1.md) is used to perform the push.
+
+
+## Documentation
+
+You can read more about this project in the documentation:
+* [Documentation home](https://ansible-community.github.io/ansible-bender/build/html/index.html)
+* [Interface](https://ansible-community.github.io/ansible-bender/build/html/interface.html)
+* [Installation](https://ansible-community.github.io/ansible-bender/build/html/installation.html)
+* [Configuration](https://ansible-community.github.io/ansible-bender/build/html/configuration.html)
+* [Usage](https://ansible-community.github.io/ansible-bender/build/html/usage.html)
+* [Caching and Layering mechanism](https://ansible-community.github.io/ansible-bender/build/html/cacheandlayer.html)
+* [Contribution guide](https://ansible-community.github.io/ansible-bender/build/html/contributing.html)
+* [Ansible-bender in OKD](https://ansible-community.github.io/ansible-bender/build/html/okd.html)
+
+
+%prep
+%autosetup -n ansible-bender-0.10.1
+
+%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-ansible-bender -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a4218c0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fd97f524753aac37ac35d56071dd6640 ansible-bender-0.10.1.tar.gz