polyaxon-dockerizer

Python dockerizer to generate and build docker images.


Keywords
polyaxon, docker, deep-learning, machine-learning, data-science, neural-networks, artificial-intelligence, ai, reinforcement-learning, kubernetes, builder
License
MIT
Install
pip install polyaxon-dockerizer==0.0.8

Documentation

License: MIT Build Status PyPI version Codacy Badge Slack

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.