A small example 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
Run Apps (subsitute to docker run
command and DockerCompose)
- Configure your default values(like docker registry, port mapping, volume mapping etc. that will be same for all apps):
- Add an new app for deployment:
- Run all configured apps:
- Run a particular app from ECR tags:
- Run a particular app by providing a tag:
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 Distribution
Built Distribution
File details
Details for the file Conjunto-bravo1996-0.2.1.tar.gz
.
File metadata
- Download URL: Conjunto-bravo1996-0.2.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe45e94444a492475d1cbddd30e1926123a60e7179ebae399c2fe129b6a9f1d |
|
MD5 | e1fa238372f528a17db45fb8ca2d683c |
|
BLAKE2b-256 | f2f554c2ba281c3a4bd5e6d0e003bfe1610864d924f5aeac1811b6d2a143a3d5 |
File details
Details for the file Conjunto_bravo1996-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: Conjunto_bravo1996-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a20d8b9a3c84f1571c2128289e95e953e6649d6a379e6a32db66926ae4276f |
|
MD5 | b026d87cae0d65c61c34faabc9338820 |
|
BLAKE2b-256 | 545cf20cf0d0af78e9cf1310dc48ad9c05d375f33e7aea94f317b3287ea9c2e7 |