{ "info": { "author": "Rich FitzJohn", "author_email": "r.fitzjohn@imperial.ac.uk", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "## OrderlyWeb (Deploy)\n\n[![Build Status](https://travis-ci.org/vimc/orderly-web-deploy.svg?branch=master)](https://travis-ci.org/vimc/orderly-web-deploy)\n[![codecov.io](https://codecov.io/github/vimc/orderly-web-deploy/coverage.svg?branch=master)](https://codecov.io/github/vimc/orderly-web-deploy?branch=master)\n\nThis is the deploy scripts for OrderlyWeb. They are the only part of the system that runs directly on metal.\nI am not good at python packaging so some documentation for help me. These might not be the best ways to do things but they seem to work:\n\n## Installation\n\nFrom local sources\n\n```\npython3 setup.py install --user\n```\n\n(you may need `--upgrade` to upgrade older versions of python packages).\n\nThis installs the package `orderly_web` for programmatic use, and a cli tool `orderly-web` for interacting with the package:\n\n## Usage\n\n```\n$ orderly-web --help\nUsage:\n orderly-web start [--extra=PATH] [--option=OPTION]... [--pull]\n orderly-web status \n orderly-web stop [--volumes] [--network] [--kill] [--force] [--extra=PATH] [--option=OPTION]...\n orderly-web admin add-users ...\n orderly-web admin add-groups ...\n orderly-web admin add-members ...\n orderly-web admin grant ...\n\nOptions:\n --extra=PATH Path, relative to , of yml file of additional\n configuration\n --option=OPTION Additional configuration options, in the form key=value\n Use dots in key for hierarchical structure, e.g., a.b=value\n This argument may be repeated to provide multiple arguments\n --pull Pull images before starting\n --volumes Remove volumes (WARNING: irreversible data loss)\n --network Remove network\n --kill Kill the containers (faster, but possible db corruption)\n --force Force stop even if containers are corrupted and cannot signal their running configuration.\n Use with extra and/or option to force stop with configuration options.\n```\n\nHere `` is the path to a directory that contains a configuration file `orderly-web.yml` (more options will follow in future versions).\n\n### Examples\n\nTo deploy with 2 users:\n```\norderly-web start ./config/basic\norderly-web admin ./config/basic add-users test.user@example.com admin.user@example.com\n```\n\nTo grant the users permissions on an individual basis:\n```\norderly-web admin ./config/basic grant test.user@example.com */reports.read\norderly-web admin ./config/basic grant admin.user@example.com */reports.read */reports.review */reports.run\n```\n\nOr to add 2 user groups, \"funders\" and \"admin\", and grant users permissions via group membership: \n```\norderly-web admin ./config/basic add-groups funders admin\norderly-web admin ./config/basic grant funders */reports.read\norderly-web admin ./config/basic grant admin */reports.read */reports.review */reports.run\norderly-web admin ./config/basic add-members funders test.user@example.com\norderly-web admin ./config/basic add-members admin admin.user@example.com\n```\n\n## Testing\n\nRun\n\n```\npython3 setup.py test\n```\n\nThis will take a while. There will be lots of warnings like:\n\n```\nResourceWarning: unclosed