Skip to main content

Opinionated wrapper around docker

Project description

An opinionated wrapper around the docker-py API to docker that knows how to read yaml files and make things happen.

https://travis-ci.org/realestate-com-au/harpoon.png?branch=master https://circleci.com/gh/realestate-com-au/harpoon/tree/master.svg?style=svg

See http://harpoon.readthedocs.org for the full documentation.

Installation

Just use pip:

pip install docker-harpoon

Usage

Once harpoon is installed, there will be a new program called harpoon.

When you call harpoon without any arguments it will print out the tasks you have available.

You may invoke these tasks with the task option.

Simpler Usage

To save typing --task and --image too much, the first positional argument is treated as task (unless it is prefixed with a -) and the second positional argument (if also not prefixed with a -) is taken as the image.

So:

$ harpoon --task run --image my_amazing_image

Is equivalent to:

$ harpoon run my_amazing_image

Logging colors

If you find the logging output doesn’t look great on your terminal, you can try setting the term_colors option in harpoon.yml to either light or dark.

Tests

Install testing deps and run the helpful script:

pip install -e .
pip install -e ".[tests]"
./test.sh

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

docker-harpoon-0.5.7.6.tar.gz (43.1 kB view details)

Uploaded Source

File details

Details for the file docker-harpoon-0.5.7.6.tar.gz.

File metadata

File hashes

Hashes for docker-harpoon-0.5.7.6.tar.gz
Algorithm Hash digest
SHA256 e571afc7b9c3d66a88512467d5abca479ae4b80a93a47bc4687b476b6322b153
MD5 86ad86cc7112cc87ea18ad7af43de49f
BLAKE2b-256 ef8a6cf410434589dfd272976323c56799d9f731b17c626f53b7036dedc69fb2

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