Fuzzy current location to git pull with all submodules or launch, close and exec container through docker-compose.
Project description
Dockit
- What is this?
Fuzzy the current location or appoint specific project name to
-
git
- pull repository and all submodules
-
docker
- launch the same prefix service with current project
- close the same prefix service with current project
- execute the container with the same as project
- Log
# | date | version |
---|---|---|
1 | 2020/01/24 | v0.1.2 |
v0.1.2
- Fixed dockit -u & -d cannot work properly when the project not located at $HOME directory.
- How to install
pip install dockit
- How to use
CLI
dockit [-h] [-n PROJECT_NAME] [-p] [-l] [-u] [-a] [-d] [-c] [-e] [-s]
-h, --help
show this help message and exit
-n, --project-name
appoint specific project name
-p, --git-pull
pull git repository and all sub repositories
-l, --docker-launch-service
parse project prefix and launch ${PREFIX}_service
-u, --docker-up-service
docker-compose up -d container with the same name as project
-a, --docker-attach-container
to keep attaching mode after docker-compose upped
-d, --docker-down-service
docker-compose down container with the same name as project
-c, --docker-close-service
parse project prefix and close ${PREFIX}_service
-e, --docker-exec-container
docker exec -it container bash
-s, --docker-show-containers
show docker processes
If you like my work, please consider buying me a coffee or PayPal
Thanks for your support! Cheers! 🎉
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.