{ "info": { "author": "nir0s", "author_email": "nir36g@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: Microsoft", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "jocker\n======\n\n|Build Status|\n\n|Gitter chat|\n\n|PyPI|\n\n|PypI|\n\n``jocker`` generates\n`Dockerfiles `__ from\n`Jinja2 `__ based template files. You\ncan optionally build an image from the generated file and even more\noptionally, push it to a hub.\n\nRequirements\n~~~~~~~~~~~~\n\n- must be run sudo-ically due to Docker's sudo requirement!\n- Python 2.6/2.7 (errr... NO TESTS YET? what a n00b!)\n- `Docker `__\n\nInstallation\n~~~~~~~~~~~~\n\n.. code:: shell\n\n pip install jocker\n\nTesting\n~~~~~~~\n\nDisclaimer in broken english: This like 5 hours project. Tests yet, No.\nHold as test being wroten. Yes.\n\nUsage\n~~~~~\n\n.. code:: shell\n\n jocker -h\n Script to run jokcer via command line\n\n Usage:\n jocker [--varsfile= --templatefile= --outputfile= --dockerconfig= --dryrun -v]\n [--build=|--push=]\n jocker --version\n\n Options:\n -h --help Show this screen.\n -f --varsfile= Path to varsfile (if omitted, will assume \"vars.py\")\n -t --templatefile= Path to Dockerfile template\n -o --outputfile= Path to output Dockerfile (if omitted, will assume \"Dockerfile\")\n -c --dockerconfig= Path to yaml file containing docker-py configuration\n -d --dryrun Whether to actually generate.. or just dryrun\n -b --build= Image Repository and Tag to build\n -p --push= Image Repository and Tag to push to (will target --build)\n -v --verbose a LOT of output (Note: should be used carefully..)\n --version Display current version of jocker and exit\n\nGenerating\n~~~~~~~~~~\n\n- A ``varsfile`` containing a dict named ``VARS`` should be supplied\n (if omitted, will default to vars.py).\n- A ``templatefile`` should Jinja2-ly correspond with the variables in\n the aforementioned ``VARS`` dict (if omitted, will default to\n Dockerfile.template)\n- An ``outputfile`` should be given (if omitted, will default to\n ``Dockerfile``)\n\nDryrun\n~~~~~~\n\nIf Dryrun is specified, the output of the generated template will be\nprinted. No file will be created.\n\nBuild and Push\n~~~~~~~~~~~~~~\n\nYou can let jocker know that after the Dockerfile was generated, you'd\nlike to either ``Build`` a Docker image and optionally Push it to your\nchosen repository.\n\nNote that for this to work you must be logged in to Docker Hub or your\nprivate images repo from your shell.\n\nAlso note that for either of these features to work you MUST be sudo'd\nas it's a prerequisite of Docker.\n\nAlso also note that you can't specify both --build and --push as --push\ntriggers a build process anyway.\n\ndocker-py configuration for ``build`` and ``push``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nA ``dockerconfig`` yaml file can be specified which includes something\nlike this:\n\n.. code:: yaml\n\n client:\n base_url: 'unix://var/run/docker.sock'\n version: '1.14'\n timeout: 10\n build:\n quiet: false\n nocache: false\n rm: false\n stream: false\n timeout:\n encoding:\n\nThis is the configuration for the docker client and for the build\nprocess as mentioned in https://github.com/docker/docker-py.\n\nVagrant\n~~~~~~~\n\nThe Vagrantfile supplied (which I haven't finished yet.. will let you\nknow once it's ready) will loadz a vbox machine, install docker and\njocker on it, generate a docker image from a template and run a\ncontainer based on the image in a daemonized mode to demonstrate the\nKRAZIE RAW POWER of jocker (and docker.. I guess *wink*)\n\nContributing\n~~~~~~~~~~~~\n\nPlease do.\n\n.. |Build Status| image:: https://travis-ci.org/nir0s/jocker.svg?branch=master\n :target: https://travis-ci.org/nir0s/jocker\n.. |Gitter chat| image:: https://badges.gitter.im/nir0s/jocker.png\n :target: https://gitter.im/nir0s/jocker\n.. |PyPI| image:: http://img.shields.io/pypi/dm/jocker.svg\n :target: http://img.shields.io/pypi/dm/jocker.svg\n.. |PypI| image:: http://img.shields.io/pypi/v/jocker.svg\n :target: http://img.shields.io/pypi/v/jocker.svg", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/nir0s/jocker/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nir0s/jocker", "keywords": null, "license": "LICENSE", "maintainer": null, "maintainer_email": null, "name": "jocker", "package_url": "https://pypi.org/project/jocker/", "platform": "All", "project_url": "https://pypi.org/project/jocker/", "project_urls": { "Download": "https://github.com/nir0s/jocker/tarball/0.1", "Homepage": "https://github.com/nir0s/jocker" }, "release_url": "https://pypi.org/project/jocker/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "Jinja2 Based Dockerfile and Image Generator", "version": "0.0.5" }, "last_serial": 1218029, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "70dfd7361f12503ade61dcedbfdd394c", "sha256": "46657bf0d6e1baa149a25be68fd3cded05de0fed551e66d69d088ef3e113e2db" }, "downloads": -1, "filename": "jocker-0.0.2.tar.gz", "has_sig": false, "md5_digest": "70dfd7361f12503ade61dcedbfdd394c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5454, "upload_time": "2014-09-07T08:36:27", "url": "https://files.pythonhosted.org/packages/2d/59/542f977cc04ea7e2c3afe08df08db7e50bd0abe18e8a0a179904e52f8b1d/jocker-0.0.2.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "b7c46af0dcfa660065925febfd61bad6", "sha256": "121b0c24470c382f7beb22521da1fcd3533353a16cc4a2751bf1b5e36ceb5243" }, "downloads": -1, "filename": "jocker-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b7c46af0dcfa660065925febfd61bad6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7555, "upload_time": "2014-09-09T09:56:49", "url": "https://files.pythonhosted.org/packages/ec/fe/1081e5a41b25713c61d2b21c9ae4641b7b6efd11c03a4ceaeb1ff8f50f86/jocker-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7c46af0dcfa660065925febfd61bad6", "sha256": "121b0c24470c382f7beb22521da1fcd3533353a16cc4a2751bf1b5e36ceb5243" }, "downloads": -1, "filename": "jocker-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b7c46af0dcfa660065925febfd61bad6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7555, "upload_time": "2014-09-09T09:56:49", "url": "https://files.pythonhosted.org/packages/ec/fe/1081e5a41b25713c61d2b21c9ae4641b7b6efd11c03a4ceaeb1ff8f50f86/jocker-0.0.5.tar.gz" } ] }