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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file polyaxon-dockerizer-0.1.0.tar.gz.

File metadata

  • Download URL: polyaxon-dockerizer-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for polyaxon-dockerizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58ca489f3e51d4f3865f866cc8258c4030d3dbebfd44d93b56b2ab971bb6a278
MD5 048ef6013523502800ad081cdc6edd67
BLAKE2b-256 3dce506feb8b15676b7441eb038de8e5066252b6113ac87f5b8bdd26d6006d7f

See more details on using hashes here.

File details

Details for the file polyaxon_dockerizer-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: polyaxon_dockerizer-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for polyaxon_dockerizer-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80a20be0e4107682f98110db71007f87267cd756a36f6a47c46721f5d7e70115
MD5 fabca3d672dc02fc694a65005b35d2e5
BLAKE2b-256 3ce618efb9ca7087f064dd64dcaf0709fdb34eee18c5f2a8a8d023e9ecdacf37

See more details on using hashes here.

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