Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

0

Administrator

--Administrator--
2504
|222
--Administrator--
Administrator
On7/1/17, 5:50 PM

This container was replace by official release of Drupal by Docker ,,,,

https://hub.docker.com/_/drupal

  • Flag


0

Angel Rodriguez

--Angel Rodriguez--
1146
|213
Miami, FL, United States
--Angel Rodriguez--


Angel Rodriguez
On10/21/15, 1:39 PM

docker-drupal 

Docker container for Drupal 8.0.0

"Drupal is an open source content management platform powering millions of websites and applications. It’s built, used, and supported by an active and diverse community of people around the world."

Install dependencies

To install docker in Ubuntu 15.04 use the commands:

    $ sudo apt-get update

    $ wget -qO- https://get.docker.com/ | sh

To install docker in other operating systems check docker online documentation

Usage

If you need a MySQL database you can link container :

    $ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -e MYSQL_DATABASE=drupal \

-e MYSQL_USER=drupaluser -e MYSQL_PASSWORD=drupaldbpasswd -d mysql

 in case you want to used pre-existing mysql container , you can add the new database by connecting to it with docker exec -it some-mysql bash and manual adding drupal database or you can link and used quantumobject/docker-mywebsql to create database drupal and user drupaluser plus need to grant all permision of this user to the drupal database.

Them link to Drupal container

    $ docker run -d -p 80 --link some-mysql:db quantumobject/docker-drupal

where when been ask for database need to replace localhost for db.

Accessing the drupal applications:

After that check with your browser at addresses plus the port assigined by docker or you:

  • http://host_ip:port/

This will create initial configuration where:

  • database : drupal

  • database user : drupaluser

  • database password : drupaldbpasswd

and after done with the final install at the web interface, need to run this command for security ..:

    $ docker exec -it container_id after_install

This will change some permission for some files internally of the container.

To access the container from the server that the container is running :

    $ docker exec -it container_id /bin/bash  

More Info

About Drupal: www.drupal.org

To help improve this container docker-drupal

Example of this docker-drupal

For additional info about us and our projects check our site www.quantumobject.com

  • Flag

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, justuse the commenting tool. Please remember that you can alwaysrevise your answers - no need to answer the same question twice. Also, pleasedon't forget to vote - it really helps to select the best questions and answers!

Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/21/15, 1:16 PM
Seen: 1067 times
Last updated: 7/1/17, 5:50 PM