2017 © Pedro Peláez
 

drupal-profile octane

Template for Drupal 8 sites built using the Octane distribution.

image

phase2/octane

Template for Drupal 8 sites built using the Octane distribution.

  • Wednesday, July 18, 2018
  • by febbraro
  • Repository
  • 43 Watchers
  • 14 Stars
  • 34 Installations
  • Makefile
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Octane

This is a composer project used to spin up a starting instance of Drupal 8 Octane. Octane is a Drupal 8 project scaffold that provides the following features: * Uses the Acquia/Lightning distribution. * Uses Particle for the Pattern-Lab based theme. * Adds common modules needed by most large Drupal 8 sites. * Provides starting configuration for Docksal. * Provides starting configuration for Outrigger. * (TODO) Provides starting configuration for CI on GitLabs., (*1)

Installation

To create a Drupal Octane project clone this repository to a directory named for your project., (*2)

Scripts for managing your site are located in the bin folder: * Native (no docker containers) - run scripts in ./bin directly. * Docksal - run a script via fin scriptname. * Outrigger - run a script via rig project scriptname., (*3)

To initialize your Drupal project, run the init script. It takes an optional argument to specify which "profile" to install. By default the "Lightning" profile will be used. Other options are "standard" or "minimal"., (*4)

This will create the docker containers, create a database, and install Drupal. Your site will be available at projectname.docksal for Docksal or projectname.vm for Outrigger., (*5)

Docksal example:, (*6)

fin init

Outrigger example:, (*7)

rig project init

If configuration files are detected in the src/config/default directory, the site will be installed using this existing config and the profile argument will be ignored., (*8)

Custom Project Scripts

Custom scripts for your project should be created in the /bin folder and then referenced from either Outrigger or Docksal., (*9)

For Docksal, create a file within .docksal/commands that performs any specific Docksal setup and then calls the script in /bin. See the init command for an example., (*10)

For Outrigger, edit the .outrigger.yml file and add a custom script with any specific Outrigger setup and then call the script in /bin. See the rig project init script for an example., (*11)

This will create the docker containers, create a database, and install Drupal., (*12)

Common Commands

Each of these commands are available as either a fin COMMAND or rig project COMMAND., (*13)

  • rebuild - Used after a git-pull to run composer, run update hooks, import config, compile theme, clear cache.
  • theme - Used to compile the theme and then run browserstack to watch for sass, js, twig changes.

Docker Containers

Outrigger uses the full docker-composer.yml (and docker-compose.override.yml locally) to define the docker containers, whereas Docksal defines a default stack and allows you to override the configuration in .docksal/docksal.yml which uses the same docker-compose syntax but only needs to contain the local overrides., (*14)

Default environment variables for Outrigger are defined in the .env file while Docksal uses the .docksal/docksal.env file., (*15)

The following containers will be created and used for your site:, (*16)

  • web - The Apache web container.
  • db - The MySQL (Docksal) or MariaDB (Outrigger) database container. Default user is admin and pass admin can be changed in the environment variables or db container configuration.

Build/CLI Container

One of the main priciples of Octane is to minimize the number of tools installed on your local computer (only Composer) and instead perform most tasks within a docker "build" container that contains all the tools., (*17)

In Outrigger, this Build container is defined in the build.yml docker-compose file. Various application specific containers are build on the "base" container for drush, composer, and generic cli commands. To run a script within the build container, use the command syntax: ```$xslt docker-compose -f build.yml run --rm cli /var/www/bin/SCRIPTNAME.sh, (*18)

Typically you will create a ``rig project SCRIPTNAME`` alias for this in the 
``.outrigger.yml`` file or create a local alias in your own ``.bashrc`` file.
For example:
```$xslt
ddrush='docker-compose -f build.yml run --rm drush'

for running drush within the build container., (*19)

To open a bash shell into the Outrigger Build container, use ```$xslt rig project bash, (*20)


In DockSal, the Build container is called ``cli`` and is defined within the default services stack, much like ``web`` or ``db`` and can be overridden using the ``docksal.yml`` file. Docksal provides its own set of aliases for common applications such as ``fin drush``, ``fin composer``, etc. To run a script within the build container, use the command syntax: ```$xslt fin exec /var/www/bin/SCRIPTNAME.sh

To open a bash shell into the Docksal Build/CLI container, use ```$xslt fin bash, (*21)


When creating a custom command for Docksal in the ``.docksal/commands`` directory, you can add the comment ```$xslt #: exec_target = cli

to the top of your script command file to cause it to be executed within the Build/CLI container instead of running locally., (*22)

The Versions

18/07 2018

dev-feature/lightning-update-july-2018

dev-feature/lightning-update-july-2018

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

22/10 2017

dev-feature/lightning-update

dev-feature/lightning-update

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

03/10 2017

dev-8.x-2.x

dev-8.x-2.x

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

20/03 2017

dev-fix-coder-version

dev-fix-coder-version

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

22/12 2016

dev-8.x-1.x

dev-8.x-1.x

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

06/10 2016

8.1.0-alpha2

8.1.0.0-alpha2

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

13/06 2016

8.1.0-alpha1

8.1.0.0-alpha1

Template for Drupal 8 sites built using the Octane distribution.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires