{"id":15065047,"url":"https://github.com/javatechy/dokr","last_synced_at":"2025-04-10T13:11:05.408Z","repository":{"id":50203473,"uuid":"146874198","full_name":"javatechy/dokr","owner":"javatechy","description":"Helper package for docker and ECS tasks","archived":false,"fork":false,"pushed_at":"2022-12-08T02:51:57.000Z","size":663,"stargazers_count":20,"open_issues_count":3,"forks_count":39,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-26T09:20:15.862Z","etag":null,"topics":["docker","ecs","ecs-cli","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/dokr/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javatechy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-31T09:57:48.000Z","updated_at":"2024-09-11T07:06:43.000Z","dependencies_parsed_at":"2022-09-10T09:12:20.321Z","dependency_job_id":null,"html_url":"https://github.com/javatechy/dokr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatechy%2Fdokr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatechy%2Fdokr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatechy%2Fdokr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatechy%2Fdokr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javatechy","download_url":"https://codeload.github.com/javatechy/dokr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142939,"owners_count":21054671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","ecs","ecs-cli","python"],"created_at":"2024-09-25T00:30:04.585Z","updated_at":"2025-04-10T13:11:05.391Z","avatar_url":"https://github.com/javatechy.png","language":"Python","readme":"# 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#### Run Apps (subsitute to `docker run` command and DockerCompose)\n\n+ Configure your default values(like docker registry, port mapping, volume mapping etc. that will be same for all apps):\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_configure.png)\n\n\n+ Add an new app for deployment:\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_configure_app.png)\n\n+ Run all configured apps:\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_run.png)\n\n+ Run a particular  app from ECR tags:\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_run_app.png)\n\n\n+ Run a particular  app by providing a tag:\n\n![alt dokr_aws_ip](https://raw.githubusercontent.com/javatechy/dokr/master/screenshots/dokr_run_app_tag.png)\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatechy%2Fdokr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavatechy%2Fdokr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatechy%2Fdokr/lists"}