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
....
Metadata
Release files for dockerfactory 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dockerfactory-0.1.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dockerfactory-0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 10.1 kB
Release files / dockerfactory-0.1.tar.gz
| Download URL | dockerfactory-0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f71aa7e9f79af8e969c70d3d70527543df3b4989191e7055b54cfe3cede90d5a
|
|
BLAKE2b-256 checksum How to use checksums |
cb955bc9fb6be071270aff6ac95f3885fe3707cc07084f89c11bdcff19189378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dockerfactory-0.1-py2-none-any.whl
| Download URL | dockerfactory-0.1-py2-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9e1a9b1cfff093774dc87120e3941017986bcc820526e6d4fcc9c874093875f9
|
|
BLAKE2b-256 checksum How to use checksums |
c764aa82608d239f4c73813210e2426378489d75d121a3053f0ebcc6fb25eace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dockerfactory 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.