-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from nikathone/development
Drupal good default Initial PR
- Loading branch information
Showing
14 changed files
with
1,439 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# The variable used to determine which composer create project to use. | ||
# Run make drupal_init_help for more information | ||
isle_codebase ?= islandora | ||
|
||
docker_compose_project ?= islandora | ||
|
||
.PHONY: help drupal_init up build down down_rmi_all down_rmi_local drupal_clean clean_local clean | ||
|
||
default: drupal_init up solr_init | ||
|
||
help: | ||
./scripts/drupal/init.sh --help | ||
|
||
drupal_init: | ||
./scripts/drupal/init.sh --codebase $(isle_codebase) | ||
|
||
solr_init: | ||
./scripts/solr/create-core.sh | ||
|
||
up: | ||
MSYS_NO_PATHCONV=1 docker-compose -p $(docker_compose_project) up --remove-orphans --detach | ||
|
||
build: | ||
MSYS_NO_PATHCONV=1 docker-compose -p $(docker_compose_project) up \ | ||
--build \ | ||
--detach \ | ||
--remove-orphans | ||
|
||
down: | ||
docker-compose -p $(docker_compose_project) down --remove-orphans | ||
|
||
down_rmi_all: | ||
docker-compose -p $(docker_compose_project) down \ | ||
--rmi all \ | ||
--volumes \ | ||
--remove-orphans | ||
|
||
down_rmi_local: | ||
docker-compose -p $(docker_compose_project) down \ | ||
--rmi local \ | ||
--volumes \ | ||
--remove-orphans | ||
|
||
drupal_clean: | ||
chmod u+w codebase/web/sites/default && rm -rf codebase data/drupal | ||
|
||
clean_local: down_rmi_local drupal_clean | ||
|
||
clean: down_rmi_all drupal_clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
/** | ||
* This file is included very early. See autoload.files in composer.json and | ||
* https://getcomposer.org/doc/04-schema.md#files | ||
*/ | ||
|
||
use Dotenv\Dotenv; | ||
use Dotenv\Exception\InvalidPathException; | ||
|
||
/** | ||
* Load any .env file. See /.env.example. | ||
*/ | ||
$dotenv = Dotenv::createImmutable(__DIR__); | ||
$dotenv->safeLoad(); |
Oops, something went wrong.