![]() ![]() You'll find the installation instructions here: On Linux run the commands as sudo! That means: Download a script that runs docker-compose in a docker container. So what to do? The solution is so simple: Use Docker to run docker-compose. But I didn't get the right version, which allowed my to write version 2 compliant docker-compose.yml files. The advantage of a Linux-based system is, that it does not need docker-machine, boot2docker, virtualbox and so on ☺.Īs I wanted to use docker-compose, too, I tried to install it from the repositories. I followed this ( ) and was very happy with it. You can find several tutorials on the web, especially on the Docker website, how to install Docker. Here you can also activate the Drupal support plugin and the BashSupport plugin, if not already active. To work with PhpStorm efficiently, some Plugins must be installed: To install the Docker plugin go to File→Settings→Plugins and activate the Docker plugin. SASS/SCSS compilation on the fly (managed by Docker). You need gulp if you want to develop a Zen-theme based on current Zen. Node.js, npm and gulp on the fly (managed by Docker). So you will get:Ī container with PHP 7.0 or 5.6, Drush, Drupal console, composerĪ container with mailhog, a webmail client that will receive all the mails you send in your Drupal development environment. In the latest version of this project I changed to use the image files from Docker4Drupal ( ). When you followed this installation instruction, you will get a functional development environment. You don't need to install apache, php or mysql on the computer to run this development environment! The only requirement is to install Docker (see below).Īll you need to install is Docker and PhpStorm! You don't need to install a LAMP-Stack or something else. Im also sure you can adapt my explanations to other development tools, too. I also use PhpStorm ( ) for development so I describe it from this point of view. But I am sure it will run on Mac and Windows in a similar way. As I am on Linux, it was developed and tested on Linux. I investigated Docker and created a checklist and some scripts to create Docker-based Drupal development environments and to interact with Docker containers. You can even copy whole development environments from one machine to another or only share the settings of a development environment with others. With Docker you can create containers holding project specific data while they depend on common images. But my servers in the wild (aka Internet) are still running on PHP 5.6! So I decided to remove all the Apache, PHP and Mysql stuff from my machine and installed Docker. ![]() And what did I get? I got PHP 7.0 and lost my PHP 5.6 installation. I was very curious to update my computer from Kubuntu 15.10 to the latest Kubuntu 16.04. Let me explain by an example why this could be a problem: ![]() All of these are available on development machines. The first question you could ask would just be this: "Why in the hell should I use docker? I have a development machine running Apache and PHP and Mysql. Moving/sharing the development environment.Open a shell in the db or www container.Using Drush, the Drupal console, or Composer in PhpStorm.Starting and stopping the environment in PhpStorm.Features of your new development environment.Install Drupal website with default values.What are the host names and IP adresses?.Set up a drupal development project with Docker.The comments about using symlinks or vfs are uninteresting, as the use of symlinks/vfs in that way are not the docker way. So some of the comments below become outdated. For the current "source of truth" for drupal, see the library/drupal file in the official-images repository.I have rewritten the Docker based development environment to use the images provided by Docker4Drupal ( ). See a change merged here that doesn't show up on Docker Hub yet?įor more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.įor outstanding drupal image PRs, check PRs with the "library/drupal" label on the official-images repository. The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the drupal directory. See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues. This is the Git repo of the Docker "Official Image" for drupal (not to be confused with any official drupal image provided by drupal upstream). Maintained by: the Docker Community ( not the Drupal Community or the Drupal Security Team) ![]()
0 Comments
Leave a Reply. |