Skip to main content

Takes the drudgery out of bind-mounting volumes on Docker and Singularity

Project description

bindit

https://img.shields.io/pypi/v/bindit.svg https://img.shields.io/travis/jooh/bindit.svg Documentation Status

Takes the drudgery out of binding volumes on Docker and (soon) Singularity

bindit is a wrapper for container runners that makes it easy to handle file input and output for containerised command-line applications. It works by detecting file paths in the container image arguments, and rebasing these as necessary onto new bind mounts.

Features

  • Detects references to relative or absolute path on local file system, bind mounts directories as necessary to make the paths available inside the container, and rebases the paths to point to the new mounts.

  • Avoids interfering with or duplicating user-defined bind mounts

  • absonly mode: ignore relative paths (useful if you have a python directory in your cwd…)

  • dryrun mode: return a re-formatted container runner command (useful for distributed execution on HPCs, testing)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-04-30)

  • First release on PyPI.

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

bindit-0.1.0.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

bindit-0.1.0-py2.py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 2 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