Drupal8 Docker Container App Initiative for testing purposes

Submitted by ricardo on Thu, 07/02/2015 - 11:10

Since that the need to support Drupal 8 will jump soon, i wanted to share with you all a contribution i've been working on:

Drupal8 Container App Initiative for testing purposes

The app will run locally, will be self-contained and will give you a local IP that you can ssh and do your own breaking and testing. Like testing modules, configs... Drupal8's container is updated to the newest version every night.

This only requires 2 steps:

1 - Install docker:

https://docs.docker.com/installation/

2 - Get the image and run it using port 80 with a single line:

sudo docker run -i -t -p 80:80 ricardoamaro/drupal8
... and after a short time:

~$ sudo docker run -i -t -p 80:80 ricardoamaro/drupal8
Unable to find image 'ricardoamaro/drupal8:latest' locally
Pulling repository ricardoamaro/drupal8
6fa744bdbc22: Pulling image (latest) from ricardoamaro/drupal8, endpoint: https://registry-1.docker.io/v6fa744bdbc22: Pulling dependent layers
Status: Downloaded newer image for ricardoamaro/drupal8:latest
150702 08:44:52 mysqld_safe Logging to '/var/log/mysql/error.log'.
150702 08:44:52 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
----GENERATED USERS CREDENTIALS----
mysql drupal password: ............
mysql root password: ............
ssh root password: .............
-----------------------------------
Starting Drupal installation. This takes a while. Consider using the --notify global option. [ok]
Installation complete. User name: admin User password: admin [ok]
Congratulations, you installed Drupal! [status]
Project memcache (8.x-2.x-dev) downloaded to /var/www/html//modules/memcache. [success]
The following extensions will be enabled: memcache
memcache was enabled successfully. [ok]
150702 08:46:00 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
--------------------------STARTING SERVICES-----------------------------------
SSH LOGIN: ssh root@172.17.0.3 with root password: ............
DRUPAL LOGIN: http://172.17.0.3 with admin password: ...........
Please report any issues to https://github.com/ricardoamaro/drupal8-docker-app
USE CTRL+C TO STOP THIS APP
------------------------------------------------------------------------------
2015-07-02 08:46:00,825 CRIT Supervisor running as root (no user in config file)
2015-07-02 08:46:00,841 INFO RPC interface 'supervisor' initialized
2015-07-02 08:46:00,841 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-07-02 08:46:00,841 INFO supervisord started with pid 498
2015-07-02 08:46:01,843 INFO spawned: 'httpd' with pid 501
2015-07-02 08:46:01,844 INFO spawned: 'sshd' with pid 502
2015-07-02 08:46:01,844 INFO spawned: 'memcached' with pid 503
2015-07-02 08:46:01,845 INFO spawned: 'mysqld' with pid 504
2015-07-02 08:46:02,968 INFO success: httpd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-02 08:46:02,968 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-02 08:46:02,968 INFO success: memcached entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-02 08:46:02,968 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

The all project can be reached at:

https://github.com/ricardoamaro/drupal8-docker-app

other Drupal versions apps:

https://github.com/ricardoamaro/drupal7-docker-app
https://github.com/ricardoamaro/drupal6-docker-app

Feel free to create issues or contribute new stuff!

Powered by Drupal