GithubHelp home page GithubHelp logo

nickopris / drupal8-docker-start Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 12 KB

These are a bunch of scripts to help with creating a development environment for Drupal 8 and Docker on Mac OSX.

Shell 100.00%
docker docker-compose drupal

drupal8-docker-start's Introduction

drupal8-docker-start

These are a bunch of scripts to help with creating a development environment for Drupal 8 and Docker on Mac OSX.

Prerequisites

  • Install Docker for Mac
  • Install docker-sync - gem install docker-sync

How to run

  • in Terminal run bash init.sh

Available commands

  • bash start.sh - will start containers and docker-sync + your start homepage in browser
  • bash stop.sh - will stop containers - db does not get removed because it's local -bash restart.sh - will stop containers and docker-sync and then restart these, no db is lost
  • docker-compose exec php drush - drush

Behind the scenes

  • the scripts will:

    • create a directory for database so that if you kill docker you will not lose the db
    • downloads Drupal8 latest
    • pulls (if needed) and installs all required Docker images
    • runs the containers
    • performs a wait so that the files will be copied across from volumes
    • docker-sync will remain in listen mode and will sync files as they get changed
    • opens the start page of the Drupal site

    Debugging

    I use Kitematic to investigate containers. If a container fails to run make note of the errors and make sure they are not already running.(this was one of my problems, I forgot it running in a different project and two similar services were not able to run at the same time on same ports).

    If you're feeling geeky use these commands to investigate:

    docker ps --all

    docker images --all

    docker exec -it <container name> /bin/bash - to ssh into a container

    Docker reference

    Docker Sync

    docker4drupal - everything you need to know about what is installed in these containers.

drupal8-docker-start's People

Contributors

nickopris avatar

Stargazers

Michal Landsman avatar

Watchers

 avatar James Cloos avatar

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.