Python dockerizer to generate and build docker images.
Project description
polyaxon-dockerizer
Python tool to generate dockerfiles compatible with Polyaxon dockerizer and Polyaxon CLI local run.
Install
$ pip install -U polyaxon-dockerizer
Usage
Generate Dockerfiles
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
from polyaxon_dockerizer import build
build(build_context,
image_tag,
image_name,
nocache,
credstore_env=None,
registries=None)
Build & Push images
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
Quick start
Please check our quick start guide to start training your first experiment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
polyaxon-dockerizer-0.1.0.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for polyaxon-dockerizer-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ca489f3e51d4f3865f866cc8258c4030d3dbebfd44d93b56b2ab971bb6a278 |
|
MD5 | 048ef6013523502800ad081cdc6edd67 |
|
BLAKE2b-256 | 3dce506feb8b15676b7441eb038de8e5066252b6113ac87f5b8bdd26d6006d7f |
Close
Hashes for polyaxon_dockerizer-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a20be0e4107682f98110db71007f87267cd756a36f6a47c46721f5d7e70115 |
|
MD5 | fabca3d672dc02fc694a65005b35d2e5 |
|
BLAKE2b-256 | 3ce618efb9ca7087f064dd64dcaf0709fdb34eee18c5f2a8a8d023e9ecdacf37 |