Skip to main content

Helps manage your docker environment

Project description

About

Swabbie is a command-line utility designed to help you manage your docker images and containers.

Swabbie can clean up your dangling containers and images, restore docker to a fresh install, and keep track of containers and images more efficiently.

By using swabbie, you remove the need for shell scripts and bash aliases to manage docker images and containers. Let swabbie keep track of those commands for you!

Installation

Currently, to install swabbie as a package, download swabbie by cloning this repo, create a virtualenv, and run

pip install --editable .

on the command line from inside the main swabbie folder.

Usage

swabbie will list all of the commands that swabbie supports, which are currently:

  • list: lists images and containers (all or only running containers and correctly built images)

  • count: tallies the total number of images and containers, as well as those that are functional

  • clean: removes all dangling images and exited containers

  • nuke: removes all images and containers; resets docker to fresh install state

  • shell: reference guide for container and image access commands; has sub-arguments

Development

To add features to swabbie, set up your virtualenv and run

pip install -r requirements.txt

To install swabbie as a local package so that it will update automatically during development, run

pip install --editable .

from the main folder.

Testing

Swabbie uses nose for unit testing, so run nosetests from the main folder to execute the test suite.

To install dependencies for running the tests, use

pip install -r requirements-test.txt

Versioning

Swabbie uses the bumpversion package for versioning. The bumpversion.cfg file contains the necessary information for updating the version, so just run

bumpversion <major/minor/patch>

and bumpversion will do the rest.

Updating README

The readme is provided in both markdown and rst. One approach is to write the readme in markdown, and then use pandoc to convert to rst:

pandoc --from=markdown --to=rst --output=README.rst README.md

License

MIT license, see LICENSE.txt.

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

swabbie-0.1.4.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file swabbie-0.1.4.tar.gz.

File metadata

  • Download URL: swabbie-0.1.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for swabbie-0.1.4.tar.gz
Algorithm Hash digest
SHA256 daefbd4e61f06ca5ea1b647a55fffd3544be705343c5fb574d625a5cf92a89a6
MD5 543418b95c6c2a909cfb1b197b71c749
BLAKE2b-256 d52f5858c81846aa2b6fba90a1481fa75e3869d7bbddf4bf4e9019c6228176f4

See more details on using hashes here.

Supported by

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