A Docker and AWS utility package
Project description
dokr - Make your docker and ecs tasks easy
A 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
Assumptions:
- Assuming python is installed on your system.
- Docker is installed on your system
- aws-cli is installed and credentials are configured on your system.
- ecs-cli is installed on system [For Log Command only]
Install dokr
on your system using :
pip install dokr
ECS Options
- login into ecs directly (Assuming awscli is installed and configured)
dokr ecs login
- Deploy an image on a cluster
dokr ecs deploy --cluster cluster_name --service service_name --tag image_version
- Check ecs running logs of a Task - this command will ask for cluster/service and task defination.
Note: Install ecs-cli before running this command from here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.html
dokr ecs log
Docker Helper Commands
- Prune whole system - Cleans unused images, containers and volumes.
dokr dock --clean-all
- Delete all the images matching the pattern
dokr dock --clean pattern_xxx
- Add a tag to the existing image matching the provided pattern (for latest tag only)
dokr dock --tag pattern_xxx tag_name
- Push all images on a system matching a pattern
This will push all images matching pattern 'pat'
dokr dock --push pat
AWS Commands
- Check current public ip of a machine on AWS
dokr aws --ip jenkins
Development:
- Clean ununsed:
rm -rf build/ dist/ *egg* **.pyc __pycache__
- Build package:
python setup.py bdist_wheel
- deploy package:
python -m twine upload dist/*
follow this link for more details https://dzone.com/articles/executable-package-pip-install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file ezy-0.1-py3-none-any.whl
.
File metadata
- Download URL: ezy-0.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770847d14016fc1bd45769fbe2f469dcaed1aa29b78a304a5486fd327d06b0e0 |
|
MD5 | 61587f4d66fb0668be4d06d175c354d7 |
|
BLAKE2b-256 | 7e7ba216cc7ff068f01d2e1eb736baa18860e6871499f16adbfd161b73c1edc3 |