Skip to main content

Python dockerizer to generate and build docker images.

Project description

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.

Project details


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)

Uploaded Source

Built Distribution

polyaxon_dockerizer-0.1.0-py2.py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page