1.0
1.0-alpine
1.0-php5
1.0-php5-alpine
1
,latest
master
master-php5
master-alpine
master-php5-alpine
A Docker container to run Drupal Console, The new CLI for Drupal as well as a tool to generate boilerplate code, interact with and debug Drupal.
This covers how to run the Drupal Console container through the Docker CLI.
Pull drupalconsole/console
from the Docker repository:
docker pull drupalconsole/console
Alternatively, you can download a specific version of Drupal Console:
docker pull drupalconsole/console:1.0
To execute Drupal Console directly, run the container with docker run
, mounting the /app
volume:
docker run -v $(pwd):/app drupalconsole/console
docker run -v $(pwd):/app drupalconsole/console help
docker run -v $(pwd):/app drupalconsole/console --version
docker run -v $(pwd):/app drupalconsole/console status
If you installed a specific version of Drupal Console, run it with:
docker run -v $(pwd):/app drupalconsole/console:1.0 --version
- Download the source:
git clone https://github.com/sylus/docker-drupalconsole.git
cd docker-drupalconsole
- Build one of the images:
docker build -t drupalconsole/console:1.0 1.0
- Use the
Makefile
to build and test all images:
make
-
Visit the
drupalconsole/console
Docker Hub for build details. -
Submit Pull Requests and create issues for new changes and features you'd like to add.
-
Install the
drupalconsole/console
container:$ docker pull drupalconsole/console
Alternatively, pull a specific version of drupalconsole/console
:
sh $ docker pull drupalconsole/console:1.0
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
This is made to run Composer through PHP 5, rather then the default of PHP 7.
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This is made to run Composer through PHP 5, rather then the default of PHP 7, through the Alpine container.