{ "info": { "author": "Christoph Witzany", "author_email": null, "bugtrack_url": null, "classifiers": [], "description": "# meta-compose\n\nThis package aims to solve the problem of variable substitution in\ndocker-compose files by parsing them as [Jinja2](http://jinja.pocoo.org/)\ntemplate.\n\nIt was inspired by the discussion\n[here](https://github.com/docker/compose/issues/1377)\n\nIt supports variable declaration in a separate YAML file as well as\naccess to environment variables.\n\n## Quickstart:\n\n- Install with `pip install meta-compose`\n\n- Create a file `meta-compose.yml` that is a [Jinja2](http://jinja.pocoo.org/)\n template for a docker compose file.\n\n- [Optional] Create a file `meta-compose-data.yml` that contains the variables\n used in the template that are not environment variables.\n\n- Call `meta-compose` and it will create a docker-compose.yml in the current\n directory\n\n## Usage\n\n```\nusage: meta-compose [-h] [-d DATAFILE] [-t TEMPLATE] [-o OUTPUTFILE]\n\noptional arguments:\n -h, --help show this help message and exit\n -d DATAFILE, --datafile DATAFILE\n Use to specify data files in addition to meta-compose-\n data.yml. They must be JSON or YAML files.\n -t TEMPLATE, --template TEMPLATE\n Use to specify the template file to use. Defaults to\n ./meta-compose.yml\n -o OUTPUTFILE, --outputfile OUTPUTFILE\n Use to specify the output file to create. Defaults to\n ./docker-compose.yml\n```\n\n## Syntax of meta-compose.yml\n\n- Everything in basic [Jinja2](http://jinja.pocoo.org/) is allowed.\n\n- To access environment variables use `{{'default'| env('VARIABLE_NAME')}}`\n where `VARIABLE_NAME` is the name of your environment variable and `default`\n is the default value you want it to be if the environment variable is not set.\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/webcrofting/meta-compose", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "meta-compose", "package_url": "https://pypi.org/project/meta-compose/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/meta-compose/", "project_urls": { "Homepage": "https://github.com/webcrofting/meta-compose" }, "release_url": "https://pypi.org/project/meta-compose/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Templating wrapper for docker-compose", "version": "0.1.3" }, "last_serial": 1591542, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "66b966ef8788684ae1c54e40c6ed898a", "sha256": "4ad5dd47734f69e450efc81baa7a3f0e32f787f862fd5ab24619ccd19f7239fd" }, "downloads": -1, "filename": "meta-compose-0.1.0.tar.gz", "has_sig": false, "md5_digest": "66b966ef8788684ae1c54e40c6ed898a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6328, "upload_time": "2015-06-06T11:02:09", "url": "https://files.pythonhosted.org/packages/5f/7e/f7dc8ea641cfe55e537203a2ecf0b0269ce5dcbcaa7cc3f7f7e7796fce6c/meta-compose-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ac7ada2043a9e8dd21ed0d4590337574", "sha256": "7491163d76c55c138a535124bdf754e82c2999e54a24ccbf15b81051fad43a93" }, "downloads": -1, "filename": "meta-compose-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ac7ada2043a9e8dd21ed0d4590337574", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6423, "upload_time": "2015-06-10T07:53:11", "url": "https://files.pythonhosted.org/packages/42/63/2a4fde483f8f105aaa4d36542f5a5bf273cc96fceff5ec794cdff2cbe744/meta-compose-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9405ff8d2ab72c9828a08c619c86d162", "sha256": "1c3b5162edc86273016cce522e4ee63c295605560a8dc399b51c683821a33c64" }, "downloads": -1, "filename": "meta-compose-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9405ff8d2ab72c9828a08c619c86d162", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6685, "upload_time": "2015-06-13T18:14:40", "url": "https://files.pythonhosted.org/packages/81/d0/719b195a43aedbd3b66ec67ec321a5aec5be814779f77e5e6c5433c97f7e/meta-compose-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1e8e2839074f9c6078b79b2aa2c72d0c", "sha256": "c0ec95c6f458aff7605ae3e7f288d16e794772ea02fefabe136b796bdaaab655" }, "downloads": -1, "filename": "meta-compose-0.1.3.tar.gz", "has_sig": false, "md5_digest": "1e8e2839074f9c6078b79b2aa2c72d0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6888, "upload_time": "2015-06-14T12:00:43", "url": "https://files.pythonhosted.org/packages/6d/60/baccd452530a520523265f84c262f6780941a811a17ca5dd232e1780d668/meta-compose-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e8e2839074f9c6078b79b2aa2c72d0c", "sha256": "c0ec95c6f458aff7605ae3e7f288d16e794772ea02fefabe136b796bdaaab655" }, "downloads": -1, "filename": "meta-compose-0.1.3.tar.gz", "has_sig": false, "md5_digest": "1e8e2839074f9c6078b79b2aa2c72d0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6888, "upload_time": "2015-06-14T12:00:43", "url": "https://files.pythonhosted.org/packages/6d/60/baccd452530a520523265f84c262f6780941a811a17ca5dd232e1780d668/meta-compose-0.1.3.tar.gz" } ] }