summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 04:47:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 04:47:12 +0000
commit6b682c9993034da32ba872aab7dede30379709f0 (patch)
tree09492ebddf033a0a6e5eb1c52f884b8c964714e0
parent47d8c08242db8f435092363fabe59fff8e867d4f (diff)
automatic import of python-polyaxon-dockerizeropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-polyaxon-dockerizer.spec293
-rw-r--r--sources1
3 files changed, 295 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6f296ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/polyaxon-dockerizer-0.1.0.tar.gz
diff --git a/python-polyaxon-dockerizer.spec b/python-polyaxon-dockerizer.spec
new file mode 100644
index 0000000..8e0ed1e
--- /dev/null
+++ b/python-polyaxon-dockerizer.spec
@@ -0,0 +1,293 @@
+%global _empty_manifest_terminate_build 0
+Name: python-polyaxon-dockerizer
+Version: 0.1.0
+Release: 1
+Summary: Python dockerizer to generate and build docker images.
+License: MIT
+URL: https://github.com/polyaxon/polyaxon-dockerizer
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3d/ce/506feb8b15676b7441eb038de8e5066252b6113ac87f5b8bdd26d6006d7f/polyaxon-dockerizer-0.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-docker
+Requires: python3-Unipath
+
+%description
+[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
+[![Build Status](https://travis-ci.com/polyaxon/polyaxon-dockerizer.svg?branch=master)](https://travis-ci.com/polyaxon/polyaxon-dockerizer)
+[![PyPI version](https://badge.fury.io/py/polyaxon-dockerizer.svg)](https://badge.fury.io/py/polyaxon-dockerizer)
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a33947d729f94f5da7f7390dfeef7f94)](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=polyaxon/polyaxon-dockerizer&amp;utm_campaign=Badge_Grade)
+[![Slack](https://img.shields.io/badge/chat-on%20slack-aadada.svg?logo=slack&longCache=true)](https://join.slack.com/t/polyaxon/shared_invite/enQtMzQ0ODc2MDg1ODc0LWY2ZTdkMTNmZjBlZmRmNjQxYmYwMTBiMDZiMWJhODI2ZTk0MDU4Mjg5YzA5M2NhYzc5ZjhiMjczMDllYmQ2MDg)
+
+
+# polyaxon-dockerizer
+
+Python tool to generate dockerfiles compatible with Polyaxon dockerizer and Polyaxon CLI local run.
+
+
+## Install
+
+```bash
+$ pip install -U polyaxon-dockerizer
+```
+
+## Usage
+
+### Generate Dockerfiles
+
+```python
+from polyaxon_dockerizer import generate
+
+generate(repo_path,
+ from_image,
+ build_steps=['apt-get install git', 'pip install tensorflow'],
+ env_vars=[['ENV_VAR1', 'VALUE1'], ['ENV_VAR2', 'VALUE2']],
+ nvidia_bin=None,
+ lang_env='en_US.UTF-8',
+ uid=2222,
+ gid=2222)
+```
+
+### Build images
+
+```python
+from polyaxon_dockerizer import build
+
+build(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+### Build & Push images
+
+```python
+from polyaxon_dockerizer import build_and_push
+
+build_and_push(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+## Install polyaxon
+
+Please check [polyaxon installation guide](https://docs.polyaxon.com/setup/)
+
+
+## Quick start
+
+Please check our [quick start guide](https://docs.polyaxon.com/concepts/quick-start/) to start training your first experiment.
+
+
+
+
+%package -n python3-polyaxon-dockerizer
+Summary: Python dockerizer to generate and build docker images.
+Provides: python-polyaxon-dockerizer
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-polyaxon-dockerizer
+[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
+[![Build Status](https://travis-ci.com/polyaxon/polyaxon-dockerizer.svg?branch=master)](https://travis-ci.com/polyaxon/polyaxon-dockerizer)
+[![PyPI version](https://badge.fury.io/py/polyaxon-dockerizer.svg)](https://badge.fury.io/py/polyaxon-dockerizer)
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a33947d729f94f5da7f7390dfeef7f94)](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=polyaxon/polyaxon-dockerizer&amp;utm_campaign=Badge_Grade)
+[![Slack](https://img.shields.io/badge/chat-on%20slack-aadada.svg?logo=slack&longCache=true)](https://join.slack.com/t/polyaxon/shared_invite/enQtMzQ0ODc2MDg1ODc0LWY2ZTdkMTNmZjBlZmRmNjQxYmYwMTBiMDZiMWJhODI2ZTk0MDU4Mjg5YzA5M2NhYzc5ZjhiMjczMDllYmQ2MDg)
+
+
+# polyaxon-dockerizer
+
+Python tool to generate dockerfiles compatible with Polyaxon dockerizer and Polyaxon CLI local run.
+
+
+## Install
+
+```bash
+$ pip install -U polyaxon-dockerizer
+```
+
+## Usage
+
+### Generate Dockerfiles
+
+```python
+from polyaxon_dockerizer import generate
+
+generate(repo_path,
+ from_image,
+ build_steps=['apt-get install git', 'pip install tensorflow'],
+ env_vars=[['ENV_VAR1', 'VALUE1'], ['ENV_VAR2', 'VALUE2']],
+ nvidia_bin=None,
+ lang_env='en_US.UTF-8',
+ uid=2222,
+ gid=2222)
+```
+
+### Build images
+
+```python
+from polyaxon_dockerizer import build
+
+build(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+### Build & Push images
+
+```python
+from polyaxon_dockerizer import build_and_push
+
+build_and_push(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+## Install polyaxon
+
+Please check [polyaxon installation guide](https://docs.polyaxon.com/setup/)
+
+
+## Quick start
+
+Please check our [quick start guide](https://docs.polyaxon.com/concepts/quick-start/) to start training your first experiment.
+
+
+
+
+%package help
+Summary: Development documents and examples for polyaxon-dockerizer
+Provides: python3-polyaxon-dockerizer-doc
+%description help
+[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
+[![Build Status](https://travis-ci.com/polyaxon/polyaxon-dockerizer.svg?branch=master)](https://travis-ci.com/polyaxon/polyaxon-dockerizer)
+[![PyPI version](https://badge.fury.io/py/polyaxon-dockerizer.svg)](https://badge.fury.io/py/polyaxon-dockerizer)
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a33947d729f94f5da7f7390dfeef7f94)](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=polyaxon/polyaxon-dockerizer&amp;utm_campaign=Badge_Grade)
+[![Slack](https://img.shields.io/badge/chat-on%20slack-aadada.svg?logo=slack&longCache=true)](https://join.slack.com/t/polyaxon/shared_invite/enQtMzQ0ODc2MDg1ODc0LWY2ZTdkMTNmZjBlZmRmNjQxYmYwMTBiMDZiMWJhODI2ZTk0MDU4Mjg5YzA5M2NhYzc5ZjhiMjczMDllYmQ2MDg)
+
+
+# polyaxon-dockerizer
+
+Python tool to generate dockerfiles compatible with Polyaxon dockerizer and Polyaxon CLI local run.
+
+
+## Install
+
+```bash
+$ pip install -U polyaxon-dockerizer
+```
+
+## Usage
+
+### Generate Dockerfiles
+
+```python
+from polyaxon_dockerizer import generate
+
+generate(repo_path,
+ from_image,
+ build_steps=['apt-get install git', 'pip install tensorflow'],
+ env_vars=[['ENV_VAR1', 'VALUE1'], ['ENV_VAR2', 'VALUE2']],
+ nvidia_bin=None,
+ lang_env='en_US.UTF-8',
+ uid=2222,
+ gid=2222)
+```
+
+### Build images
+
+```python
+from polyaxon_dockerizer import build
+
+build(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+### Build & Push images
+
+```python
+from polyaxon_dockerizer import build_and_push
+
+build_and_push(build_context,
+ image_tag,
+ image_name,
+ nocache,
+ credstore_env=None,
+ registries=None)
+```
+
+
+## Install polyaxon
+
+Please check [polyaxon installation guide](https://docs.polyaxon.com/setup/)
+
+
+## Quick start
+
+Please check our [quick start guide](https://docs.polyaxon.com/concepts/quick-start/) to start training your first experiment.
+
+
+
+
+%prep
+%autosetup -n polyaxon-dockerizer-0.1.0
+
+%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-polyaxon-dockerizer -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3ecca9b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+048ef6013523502800ad081cdc6edd67 polyaxon-dockerizer-0.1.0.tar.gz