Giter Site home page Giter Site logo

geerlingguy / drupal-vm-docker Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 4.0 10 KB

Drupal VM Docker Composer Plugin

Home Page: https://packagist.org/packages/geerlingguy/drupal-vm-docker

License: MIT License

PHP 100.00%
drupal docker local-environment drupal-vm vm composer plugin local

drupal-vm-docker's Introduction

DEPRECATED - Drupal VM Docker Composer Plugin

This project has been deprecated. It is no longer maintained.

Packagist Docker Automated build irc://irc.freenode.net/drupal-vm

The quickest way to add a local development environment to your Drupal project!

Get started:

composer require --dev geerlingguy/drupal-vm-docker

Run this command inside the directory of a Drupal project that is built using Composer, and it will create a Docker Compose file which will run a local instance of Drupal VM.

Make sure you have Docker CE installed and running, then run docker-compose up -d. After a minute or two, you should be able to access your Drupal site at http://localhost/.

To install Drupal, the default Drupal VM database name, username, and password are all drupal.

Shutting down the environment

When you're finished developing, run the command:

docker-compose stop

And once you're ready to develop again, run:

docker-compose start

If you want to completely clear out the local environment (e.g. to start over or if you're finished with a project), run:

docker-compose down

Updating the Docker Compose file

The Docker Compose file should be updated automatically any time you update to a newer version of this plugin. However, you can also manually force the file to be updated by running:

composer drupal-vm-docker-update

You should then tell Docker to restart anything that needs to be restarted with docker-compose up -d.

License

This project is licensed under the MIT open source license.

About the Author

Jeff Geerling created the Drupal VM Docker Composer Plugin in 2018 for a more efficient Drupal site and core/contrib development workflow.

drupal-vm-docker's People

Contributors

geerlingguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

drupal-vm-docker's Issues

Allow some configuration through composer.json extra config

I would like to allow a few settings to be configured through a Drupal project's composer.json extras config, e.g.:

    "extra": {
        "drupal-vm-docker": {
            "container_name": "custom-container-name",
            "http_port": "80",
            "https_port": "443",
        }
    }

Basic things like that which will be templated into the docker-compose.yml file. Or maybe do something else here, but basically I want a few configurable flags.

Customization of Drupal-VM in Docker.

  • How to migrate from vagrant box/config.yml to Docker
  • Host OS /etc/hosts file doesnot updated after running docker-composer up
  • How can I execute Ansible playbook.yml file inside docker container so it will automatically setup all the configuration.

Add automated tests

At a minimum:

  • Validate the composer.json file.
  • Can we install the plugin and then verify the docker-compose.yml file is created?
  • Can we install the plugin and then run the drupal-vm-docker-compose-update command?

Kubernetes support?

I've been longing to see how you would achieve a similar product under a Kubernetes release.

I understand this is overkill, but it would be very nice to somebody such as myself.

If you're not interested feel free to close this ticket.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.