%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&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&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&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&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&utm_medium=referral&utm_content=polyaxon/polyaxon-dockerizer&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 - 0.1.0-1 - Package Spec generated