Skip to main content

Dockit

- What is this?

docker

To launch, close and execute container with docker-compose and its relative services without change the directory.

git

Fuzzy the current location to pull all the submodules and specify the project if required.

- History

# date version
1 2020/01/24 v0.1.2
2 2020/01/27 v0.1.4
3 2020/02/02 v0.1.5
4 2020/02/13 v0.1.6
5 2020/03/22 v0.1.8

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.

v0.1.5

  • Fixed display bug while remote added new branches.
  • Removed optional argument -n, use positional argument instead.(default:basename of $pwd)

v0.1.6

  • Support pull a project and the all the submodules which belongs to the project without change the directory.
  • Support change source directory by setting a environment variable export DOCKIT_ROOT='~/your/custom/path'.

v0.1.8

  • Removed -l flag of _exec_container to solve some container cannot call go properly

- How to install

  • Install
pip install dockit
  • Setup source root(Optional) Make it temporary or add the following line to your .bashrc, .zshrc or profile to keep it permanently.
export DOCKIT_ROOT='~/TO/YOUR/CUSTOM/PATH'

- How to use

dockit.py [-h] [-a] [-p] [-l] [-c] [-u] [-d] [-e] [-s] [project]

-h, --help

show this help message and exit

-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

# .bashrc or .zshrc
alias gitpull="dockit -p"
alias run="dockit -e"
alias up="dockit -u"
alias uu="dockit -l"
alias uuu="dockit -lu"
alias uur="dockit -lue"
alias uura="dockit -luea"
alias down="dockit -d"
alias dd="dockit -c"
alias ddd="dockit -cd"
alias dps="dockit -s"

If you like my work, please consider buying me a coffee or PayPal Thanks for your support! Cheers! 🎉 Buy Me A Coffee

Metadata

Release files for dockit 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dockit 0.1.8
File Size Uploaded Provenance Actions
dockit-0.1.8.tar.gz 7.0 kB Without provenance Details for dockit-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dockit 0.1.8
File Interpreter ABI Platform Actions
dockit-0.1.8-py3-none-any.whl Python 3 none any Details for dockit-0.1.8-py3-none-any.whl

Total release size: 13.8 kB

Release files / dockit-0.1.8.tar.gz

Download URL dockit-0.1.8.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3aefeb3b596e270cd7e91faf5bbcaaa908ed7dbbea6c294698def4f8fd244fa
BLAKE2b-256 checksum
How to use checksums
0d5e19a79a6a3c3d6fc59d07fcd40429fabf47bbb0183420d9a29dc0aa73eb85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.1

Release files / dockit-0.1.8-py3-none-any.whl

Download URL dockit-0.1.8-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5a5bd3784970d12b0fde9ba1eddc998e15f04cb14b18b9d30020399039b12e0
BLAKE2b-256 checksum
How to use checksums
7bfca41c7df732b8e0b482c7480f760db29f0c30463e1d4226695135e7e369fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.1

Security for dockit 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page