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
....
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dockerfactory-0.1.tar.gz.
File metadata
- Download URL: dockerfactory-0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f71aa7e9f79af8e969c70d3d70527543df3b4989191e7055b54cfe3cede90d5a
|
|
| MD5 |
d630dc6c8a32adbe006885c0cf3c0673
|
|
| BLAKE2b-256 |
cb955bc9fb6be071270aff6ac95f3885fe3707cc07084f89c11bdcff19189378
|
File details
Details for the file dockerfactory-0.1-py2-none-any.whl.
File metadata
- Download URL: dockerfactory-0.1-py2-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1a9b1cfff093774dc87120e3941017986bcc820526e6d4fcc9c874093875f9
|
|
| MD5 |
2edf97ce9d91ad33dc83f0d758a4502e
|
|
| BLAKE2b-256 |
c764aa82608d239f4c73813210e2426378489d75d121a3053f0ebcc6fb25eace
|