- python and PIP
- ruby for serverspec tests
The building process, we need some python packages as well as ruby rspec and serverspec packages:
make requirements
All commands are using configuration options from conf/console.yml
.
Tip: Most tasks are using arguments as whitelist addon for easier usage.
Build all Dockerfiles found in docker/
directory. The directory structure defines the naming of the built images
(using convention over configuration).
Option | Description | Values |
---|---|---|
-v | Verbose output | option only |
--threads=n | Run in parallized mode (currently multi-process instead of real threads) | numeric values, auto, auto/2, auto*2, auto-2, auto+2 |
--dry-run | Don't really execute build process | option only |
--no-cache | Don't use Docker caching | option only |
--retry=n | Retry process multiple times (eg. for networking issues) | numeric values |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Push (upload) all built Docker images to registry (using convention over configuration).
Option | Description | Values |
---|---|---|
-v | Verbose output | option only |
--threads=n | Run in parallized mode (currently multi-process instead of real threads) | numeric values, auto, auto/2, auto*2, auto-2, auto+2 |
--dry-run | Don't really execute build process | option only |
--retry=n | Retry process multiple times (eg. for networking issues) | numeric values |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Pull (download) all built Docker images to registry (using convention over configuration).
Option | Description | Values |
---|---|---|
-v | Verbose output | option only |
--threads=n | Run in parallized mode (currently multi-process instead of real threads) | numeric values, auto, auto/2, auto*2, auto-2, auto+2 |
--dry-run | Don't really execute build process | option only |
--retry=n | Retry process multiple times (eg. for networking issues) | numeric values |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Execute argument as command inside all docker images.
eg. bin/console docker:exec --whitelist php -- 'php -v'
Tip: Separate the docker image command arguments from the console commands with two dashes.
Option | Description | Values |
---|---|---|
-v | Verbose output | option only |
--dry-run | Don't really execute build process | option only |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Test built images with testinfra (python module), spec files are inside tests/testinfra
Option | Description | Values |
---|---|---|
-v | Verbose output | option only |
--threads=n | Run in parallized mode (currently multi-process instead of real threads) | numeric values, auto, auto/2, auto*2, auto-2, auto+2 |
--dry-run | Don't really execute build process | option only |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Test built images with serverspec (python module), spec files are inside tests/serverspec
Option | Description | Values |
---|---|---|
--threads=n | Run in parallized mode (currently multi-process instead of real threads) | numeric values, auto, auto/2, auto*2, auto-2, auto+2 |
--dry-run | Don't really execute build process | option only |
--retry=n | Retry process multiple times (eg. for networking issues) | numeric values |
--whitelist=term | Only build Docker images with term in name | string value |
--blacklist=term | Don't build Docker images with term in name | string value |
Generates Docker images dependency graph using graphviz.
Generate Dockerfiles from Dockerfile.jinja2
templates.
Configuration is stored inside conf/diagram.yml
.
Generate provision (common configuration files) and deploy them to the specified Dockerfile directories.
Configuration is stored inside conf/provision.yml
.