{ "info": { "author": "Deepak Kumar", "author_email": "deepak.kumar.iet@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# dokr - Make your docker and ecs tasks easy\n\nA Helper pip package for docker and ECS tasks. This pip package helps you automate your CI/CD pipeline. If your using docker and Amazon ECS for deployments, this tool can be really helpful. This package uses aws cli and ecs cli. Mak\n\n\n### Assumptions:\n\n+ Assuming python is installed on your system.\n+ Docker is installed on your system\n+ [aws-cli](https://docs.aws.amazon.com/cli/latest/userguide/installing.html) is installed and credentials are configured on your system.\n+ [ecs-cli](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.html) is installed on system [*For Log Command only*]\n\n\nInstall `dokr` on your system using : \n\n```\npip install dokr\n```\n\n## ECS Options\n\n+ login into ecs directly (Assuming awscli is installed and configured)\n\n```\ndokr ecs login\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_ecs_login.png)\n\n\n+ Deploy an image on a cluster \n\n```\ndokr ecs deploy --cluster cluster_name --service service_name --tag image_version\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_ecs_deploy.png)\n\n\n+ Check ecs running logs of a Task - this command will ask for cluster/service and task defination.\n\n**Note:** Install ecs-cli before running this command from here:\n\t https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.html\n\n```\ndokr ecs log\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_ecs_log.png)\n\n\n## Docker Helper Commands\n\n+ Prune whole system - Cleans unused images, containers and volumes.\n\n```\ndokr dock --clean-all\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_dock_clean_all.png)\n\n\n+ Delete all the images matching the pattern\n\n```\ndokr dock --clean pattern_xxx\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_dock_clean.png)\n\n\n+ Add a tag to the existing image matching the provided pattern (for latest tag only)\n\n```\ndokr dock --tag pattern_xxx tag_name\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_dock_tag.png)\n\n\n\n+ Push all images on a system matching a pattern\n\nThis will push all images matching pattern 'pat'\n\n```\ndokr dock --push pat\n```\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_dock_push.png)\n\n\n#### AWS Commands\n\n+ Check current public ip of a machine on AWS\n\n```\ndokr aws --ip jenkins \n```\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_aws_ip.png)\n\n\n\n### Development:\n\n+ Clean ununsed: `rm -rf build/ dist/ *egg* **.pyc __pycache__`\n+ Build package: `python setup.py bdist_wheel`\n+ deploy package: `python -m twine upload dist/*`\n\nfollow this link for more details https://dzone.com/articles/executable-package-pip-install\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/javatechy/dokr", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ezy", "package_url": "https://pypi.org/project/ezy/", "platform": "", "project_url": "https://pypi.org/project/ezy/", "project_urls": { "Homepage": "https://github.com/javatechy/dokr" }, "release_url": "https://pypi.org/project/ezy/0.1/", "requires_dist": [ "requests", "click", "configparser" ], "requires_python": "", "summary": "A Docker and AWS utility package", "version": "0.1" }, "last_serial": 4363217, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "61587f4d66fb0668be4d06d175c354d7", "sha256": "770847d14016fc1bd45769fbe2f469dcaed1aa29b78a304a5486fd327d06b0e0" }, "downloads": -1, "filename": "ezy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "61587f4d66fb0668be4d06d175c354d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10870, "upload_time": "2018-10-11T07:48:07", "url": "https://files.pythonhosted.org/packages/7e/7b/a216cc7ff068f01d2e1eb736baa18860e6871499f16adbfd161b73c1edc3/ezy-0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "61587f4d66fb0668be4d06d175c354d7", "sha256": "770847d14016fc1bd45769fbe2f469dcaed1aa29b78a304a5486fd327d06b0e0" }, "downloads": -1, "filename": "ezy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "61587f4d66fb0668be4d06d175c354d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10870, "upload_time": "2018-10-11T07:48:07", "url": "https://files.pythonhosted.org/packages/7e/7b/a216cc7ff068f01d2e1eb736baa18860e6871499f16adbfd161b73c1edc3/ezy-0.1-py3-none-any.whl" } ] }