Skip to main content

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

- History

# date version
1 2020/01/24 v0.1.2
2 2020/01/27 v0.1.4

v0.1.2

  • Fixed dockit -u & -d cannot work properly when the project not located at $HOME directory.

v0.1.4

  • Replaced whole color module.

- 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! 🎉 Buy Me A Coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockit-0.1.4.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

dockit-0.1.4-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page