Skip to main content

Yaml based way to build Docker images.

Project description

https://travis-ci.org/nlesc-sherlock/boatswain.svg?branch=master

Boatswain

Boatswain is a simple build system for docker images.

It is especially usefull when you have multiple docker images that depend on each other.

Installation

Boatswain is a simple python script you can install with pip

$ pip install boatswain

Usage

Create a file called boatswain.yml for your project with the following syntax, which is heavily based on docker-compose.

version: 1.0                    # The version of the boatswain yaml
organisation: boatswain         # Your dockerhub organisation
images:
    image1:pytest:              # the key will be used to tag the image
        context: docker/image1  # The path of the dockerfile
    image2:pytest:
        context: docker/image2
        from: image1:pytest     # This image depends on the other image
    image3:pytest:
        context: docker/image3
        from: image2:pytest
    image4:pytest:
        context: docker/image4
        tag: image12:pytest     # This image will be tagged with this

Change Log

This document records all notable changes to Boatswain.

This project adheres to Semantic Versioning.

0.5.0 (2017-02-10)

  • Implemented push command

  • Build will now greedily try to build images instead of throwing an exception at the first error.

  • Added error messages to failing builds

  • Standardized return values (e.g. always a list)

  • Refactored to reduce code duplication in boatswain class

0.4.0 (2017-02-09)

  • Progress timer now increases every second

  • Improved error reporting (No longer uses an exception)

0.3.0 (2017-02-08)

  • Added a whole bunch of tests

  • Added the clean command

  • Changed file layout from recursive to using from

0.2.0 (2017-02-06)

  • Added dry-run option

  • Added ability to build only one image

0.1.0 (2017-02-02)

  • Initial release

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

boatswain-0.5.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

boatswain-0.5.1-py2.py3-none-any.whl (11.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file boatswain-0.5.1.tar.gz.

File metadata

  • Download URL: boatswain-0.5.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for boatswain-0.5.1.tar.gz
Algorithm Hash digest
SHA256 f47563fdcd55adba41a19e8bea50af554b9a17fab1ab4f8899e2dd6d08ddad9f
MD5 34161ceb367416933b7a779233463038
BLAKE2b-256 ea4674502eb35f21dc627b2fc67f81bd8a64374032b060bf5a88971f9cb739f8

See more details on using hashes here.

File details

Details for the file boatswain-0.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for boatswain-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19084952e7869088d2f8d6efbb0cbdbf203ca15d2c5f95a925f77fbe88a29d67
MD5 c9d958b9344ea8d6294809ce2cbde757
BLAKE2b-256 dfc105abe989e8ccaae67c64fec7b2a05ed980974a6e257349f933506a47a7d1

See more details on using hashes here.

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