### Build Specific Container Example Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds a specific container, using 'webdevops/php-nginx' as an example. ```makefile make webdevops/php-nginx ``` -------------------------------- ### Generate Gitlab CI Configuration Source: https://github.com/webdevops/dockerfile/blob/master/README.md This command generates the Gitlab CI configuration. It first installs composer dependencies and then executes the github:generate command. ```bash docker run --rm -ti -v $PWD:/app -w /app/ci webdevops/php:8.4-alpine composer install ``` ```bash docker run --rm -ti -v $PWD:/app -w /app webdevops/php:8.4-alpine ci/console github:generate ``` -------------------------------- ### Full Build and Provision Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Runs provision and builds all images. ```makefile make full ``` -------------------------------- ### Deploy Configuration Files Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Deploys all configuration files from the _provisioning directory. ```makefile make provision ``` -------------------------------- ### Build and Deploy Baselayout Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds and deploys the baselayout.tar archive. ```makefile make baselayout ``` -------------------------------- ### Build All Containers (Fast Mode) Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all containers in parallel for speed. Set FAST=1 for this mode. ```makefile make all ``` -------------------------------- ### Build Base Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all base containers. ```makefile make base ``` -------------------------------- ### Build Apache Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all Apache containers. ```makefile make apache ``` -------------------------------- ### Build All Containers with Debug Logs Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all containers and shows build logs even on success. Set DEBUG=1 to enable. ```makefile DEBUG=1 make all ``` -------------------------------- ### Run Container Test Suite Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Executes the test suite using currently available Docker images on the host. ```makefile make test ``` -------------------------------- ### Provision Docker Images Source: https://github.com/webdevops/dockerfile/blob/master/README.md Use this command to provision Docker images by generating files within the 'docker' directory using Jinja2 templates and provisioning configuration files. ```bash docker run --rm -ti -v $PWD:/app -w /app webdevops/dockerfile-build-env make provision ``` -------------------------------- ### Build Service Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all service containers. ```makefile make service ``` -------------------------------- ### Build PHP Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all PHP containers. ```makefile make php ``` -------------------------------- ### Build All Containers (Slow Mode) Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all containers serially. Set FAST=0 to disable parallel building. ```makefile FAST=0 make all ``` -------------------------------- ### Build Nginx Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all Nginx containers. ```makefile make nginx ``` -------------------------------- ### Run Test Suite with Latest Docker Hub Images Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Executes the test suite after pulling the newest Docker images from Docker Hub. ```makefile make test-hub-images ``` -------------------------------- ### Build HHVM Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds all HHVM containers. ```makefile make hhvm ``` -------------------------------- ### Enable a Service Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/services.md Use the `docker-service enable` command to enable a specific background service. This command runs the provisioning script and modifies the supervisor configuration to ensure the service autostarts. ```bash RUN docker-service enable cron ``` -------------------------------- ### Push Images to Docker Hub Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Runs tests, rebuilds images using cache, and pushes them to Docker Hub. ```makefile make push ``` -------------------------------- ### Publish Images Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Performs dist-update, a forced build of all images, and pushes them. ```makefile make publish ``` -------------------------------- ### Register Ansible Role for Entrypoint Only Source: https://github.com/webdevops/dockerfile/blob/master/docker/base/README.md Use this command to register a custom Ansible role that will only run at each startup (entrypoint). ```bash RUN bash /opt/docker/bin/control.sh provision.role.entrypoint yourrolename ``` -------------------------------- ### Register Entrypoint Only Role Source: https://github.com/webdevops/dockerfile/blob/master/docker/base-app/README.md Use this command in your Dockerfile to register a custom role that only runs at each startup (entrypoint). ```bash RUN bash /opt/docker/bin/control.sh provision.role.bootstrap.entrypoint yourrolename ``` -------------------------------- ### Force Container Build Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Forces a container build, bypassing the cache. Set FORCE=1 to use `docker build --no-cache`. ```makefile FORCE=1 make all ``` -------------------------------- ### Register Ansible Role for Bootstrap and Entrypoint Source: https://github.com/webdevops/dockerfile/blob/master/docker/base/README.md Use this command to register a custom Ansible role that will run for both bootstrap and entrypoint provisioning. ```bash RUN bash /opt/docker/bin/control.sh provision.role yourrolename ``` -------------------------------- ### Build Specific Tagged Containers Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Builds only containers tagged with specific names. Use WHITELIST to specify tags. ```makefile WHITELIST="alpine-3 centos-7" make all ``` -------------------------------- ### Update Local Distribution Images Source: https://github.com/webdevops/dockerfile/blob/master/documentation/gitbook/using-the-images/using-templates.md Updates local distribution images for CentOS, Debian, and Ubuntu. ```makefile make dist-update ``` -------------------------------- ### Register Bootstrap Only Role Source: https://github.com/webdevops/dockerfile/blob/master/docker/base-app/README.md Use this command in your Dockerfile to register a custom role that only runs during the bootstrap phase. ```bash RUN bash /opt/docker/bin/control.sh provision.role.bootstrap.bootstrap yourrolename ``` -------------------------------- ### Register Ansible Role for Bootstrap Only Source: https://github.com/webdevops/dockerfile/blob/master/docker/base/README.md Use this command to register a custom Ansible role that will only run during the bootstrap phase. ```bash RUN bash /opt/docker/bin/control.sh provision.role.bootstrap yourrolename ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.