diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:47:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:47:12 +0000 |
commit | 6b682c9993034da32ba872aab7dede30379709f0 (patch) | |
tree | 09492ebddf033a0a6e5eb1c52f884b8c964714e0 | |
parent | 47d8c08242db8f435092363fabe59fff8e867d4f (diff) |
automatic import of python-polyaxon-dockerizeropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-polyaxon-dockerizer.spec | 293 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 295 insertions, 0 deletions
@@ -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) +[](https://travis-ci.com/polyaxon/polyaxon-dockerizer) +[](https://badge.fury.io/py/polyaxon-dockerizer) +[](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&utm_campaign=Badge_Grade) +[](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) +[](https://travis-ci.com/polyaxon/polyaxon-dockerizer) +[](https://badge.fury.io/py/polyaxon-dockerizer) +[](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&utm_campaign=Badge_Grade) +[](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) +[](https://travis-ci.com/polyaxon/polyaxon-dockerizer) +[](https://badge.fury.io/py/polyaxon-dockerizer) +[](https://www.codacy.com/app/polyaxon/polyaxon-dockerizer?utm_source=github.com&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&utm_campaign=Badge_Grade) +[](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 @@ -0,0 +1 @@ +048ef6013523502800ad081cdc6edd67 polyaxon-dockerizer-0.1.0.tar.gz |