Skip to content

scbd/drupal-docker-stacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCBD Drupal Docker Stacks

Introduction

Drupal docker stacks was inspired by Docker4Drupal. It is a template for a drupal development workflow using docker stacks to represent the local, dev, staging and production drupal environments.

Drupal docker stacks provides and utilizes tools in order to synchronize environments facilitating the development workflow.

Requirements

  • Docker CE 17.04.0+ supporting compose file format 3.2+, get it here
  • Docker-sync in order to mount a mac drive to docker, get it here or gem install docker-sync
  • Access to private repo https://github.com/scbd/drupal-config
  • git config (set up with your account which has access ot the private repo)
  • Required SCBD secrets in order to run drupal
    1. SRCKEY - key to decrypt encrypted docker image
    2. db-init
    3. S3ID
    4. S3PASS
  • Supplementary SCBD secrets
    1. AURORA_USER - your user for the cloud sql
    2. AURORA_PASS - your pass for the cloud sql
    3. DRUPAL_ADMIN_USER
    4. DRUPAL_ADMIN_PASS

Request private access and secrets from it@cbd.int. Also our cloud based sql is ip restricted, you will need to provide your static ip for local development.

Quick Start - drupal local initialization

Place your secrets in your home directory $HOME/.secrets/

bash -c "$(curl -fsSL https://tinyurl.com/y8k7f2f4)"  

Quick Commands From /local/drupal/ once initialized

To start drupal after stopped

sh start.sh

To start drupal from running in the back ground

sh stop.sh

To export config changes for git commit

sh export.sh

To require a drupal module or theme

 sh require.sh drupal/module

To completely remove all drupal and data from your system

 bash -c "$(curl -fsSL https://tinyurl.com/y98xuzjj)"

Documentation

Full documentation is available at http://drupal-docker-stacks.readthedocs.io

Stacks

http://drupal.localhost/

https://drupal.cbddev.xyz/

https://drupal.staging.cbd.int/

The Drupal Docker Stack:

Stack yml
local drupal.yml
dev drupal.yml
stg drupal.yml
prod drupal.yml

The Dependency Stack:

Drupal Docker Stacks has one dependency which is a reverse proxy. Our implementation is employs traefik. Please share your custom reverse proxy implementations.

Stack yml
local proxy.yml
dev proxy.yml
stg proxy.yml

The Helper Stack:

The helper stack portainer a tool to help you manage your docker stacks via a UI.

Stack yml
local manage.yml
dev manage.yml
stg manage.yml

Reference

Drupal developer resources

State of Drupal:

Trends:

License

TODO

  • memcache
  • varnish
  • solr

This project is licensed under the MIT open source license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages