This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Control the context of your docker builds.

Project Description

Control the context of your docker builds.

Dockerfactory makes docker build easier by using a config file (Dockerfactory.yml) instead of command line arguments to build. Dockerfactory.yml also lets you specify the build context so you can pick and choose the exact directories or files that get added to your Docker build context.

Dockerfactory.yml

# Automatically tag built images
tag: six8/dockerfactory
# Can override the Dockerfile
dockerfile: ./Dockerfile.prod
# Most `docker build` parameters work (use '_' instead of '-')
force_rm: True
memory: 100m
context:
  # Relative directories are relative to Dockerfactory.yml
  # Must specify current directory if you want it. Dockerfactory
  # does not assume you want the current directory.
  .: /
  # Dockerfactory allows paths outside of current directory
  ../foobar:/foobar

See docker build for full set of parameters.

Usage

You can either install as a Python package with pip install dockerfactory or run as a docker image.

docker run -it --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ${PWD}:/project \
    six8/dockerfactory:0.1 \
    /project/Dockerfactory.yml
Dockerfactory building:
  With command: docker build --force-rm --memory 100m --no-cache --tag six8/dockerfactory:0.1 -
  With Dockerfile: /project/Dockerfile
  With context:
    - /project: /

Sending build context to Docker daemon 97.28 kB
....
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dockerfactory-0.1-py2-none-any.whl (6.2 kB) Copy SHA256 Checksum SHA256 py2 Wheel Mar 4, 2016
dockerfactory-0.1.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Mar 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting