Skip to main content

A tool to save and load the docker image tarball file

Project description

cover

DIH: Docker Image Handler

A tool to save and load the docker image tarball file.

GitHub License GitHub Workflow Status (with event) GitHub tag checks state GitHub issues

Codecov PyPI - Version PyPI - Python Version PyPI - Downloads PyPI - Status

Requirements

Install module with PyPI

mkvirtualenv dih
pip install dih

Load docker image with tarball file

  • Load docker image with specific folder or file

    dih load -f ./archives
    
  • Load docker image with manual selection

    dih load -f ./archives --select
    
    Sample


    Enter the index of the docker images...


  • Load docker image with specific folder and verify with compose file.

    dih load -f ./archives -c <path/to/compose>
    
    Sample


    Verify with compose file and only load the verified indexes...


Save docker image into tarball file

  • Save docker image into tarball file.

    dih save -f ./archives
    
  • Filter with specific rule, includes something and excludes something.

    dih save -f ./archives -inc innodisk -exc none
    
    Sample


    dih save -f ./archives -inc rtsp -exc none...


More detail

  • dih load --help
    Usage: dih load [OPTIONS]
    
    Options:
    -f, --folder PATH        Path to the folder.  [required]
    -c, --compose-file PATH  Path to compose file.
    -s, --select             Select by index.
    --debug                  Only display the information.
    --help                   Show this message and exit.
    
  • dih save --help
    Usage: dih save [OPTIONS]
    
    Options:
    -f, --folder TEXT      Path to the folder.  [required]
    -inc, --includes TEXT  Include keys.
    -exc, --excludes TEXT  Exclude keys.
    --debug                Only display the information.
    --help                 Show this message and exit.
    

For Developer

Requirements

Testing

pytest -v
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html

Distribute

python3 -m pip install --upgrade build
sudo apt install python3.10-venv
python3 -m build
twine upload dist/*

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

dih-0.0.1.3.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

dih-0.0.1.3-py3-none-any.whl (12.8 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