![]() including various open source CMS such as WordPress, Drupal etc and other open. This image is suitable for running WordPress, Drupal, phpmyadmin, applications with high density and security. On the other hand, if part of what you're doing is scripted - then you probably just need to add a Drush alias so Drush is able to locate your installation when a command is run outside of webroot see but you haven't said how you're installing Drupal so I can't say for sure. Docker Cloud provides a hosted registry service with build and testing. use a custom command and script the adjustments there use docker-compose build to configure a Dockerfile maintain your own image on Docker Hub based on a. Use-case The containers will be created using Dockerfile. We will be using WordPress as the application on the LAMP stack. Both the MySQL and Apache docker containers will be hosted on different hosts. There are 2 options how to use docker4drupal you can either run vanilla Drupal from the image or mount. Ideally, you should just make your own distribution profile and this would enable the theme for the user on site-install (and allow you to make all your customisations in one place). This blog post describes setting up LAMP stack using containers via docker on different servers. yml and update the host path to your data directory. How to achieve what you desire very much depends on how you install Drupal after Docker has finished building? Ideally, you're doing this with an ENTRYPOINT script rather than manually - and if so, then after the install - enable the theme with Drush there. The key variables to know are for configuring the database endpoint. The base image accepts a number of environment variables used to configure WordPress. ![]() Now, I'm not familiar with the official Drupal Docker image but I'm sure it must be a simple PHP based container? The point being is that the last thing to happen is for PHP to actually be run, and until that point, MySQL is not running. For a typical WordPress install one of the first actions you take will be to configure your database. The problem is that anything in the Dockerfile is part of the build process - which is used for creating an image that is finally run via CMD. In order to install a module in Drupal you need access to the database with a working installation. Installing modules with composer is very different from installing them in Drupal.
0 Comments
Leave a Reply. |