Skip to content

rimi-itk/ereolen-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ereolen-docker

./scripts/install-sites

To remove docker-compose, run

./scripts/undocker-sites

eReolen

cd ereolen

Edit web/sites/default/settings.local.php and insert:

<?php

$databases['default']['default'] = [
 'database' => getenv('DATABASE_DATABASE') ?: 'db',
 'username' => getenv('DATABASE_USERNAME') ?: 'db',
 'password' => getenv('DATABASE_PASSWORD') ?: 'db',
 'host' => getenv('DATABASE_HOST') ?: 'mariadb',
 'port' => getenv('DATABASE_PORT') ?: '',
 'driver' => getenv('DATABASE_DRIVER') ?: 'mysql',
 'prefix' => '',
];
../scripts/checkout develop develop
docker-compose up -d
../scripts/update

Get remote data

Edit .env.local:

REMOTE_HOST=ereolen.dk
REMOTE_DB_DUMP_CMD='drush --root=/data/www/ereolen_dk/htdocs --uri=ereolen.dk sql-dump --structure-tables-list="cache,cache_*,history,search_*,sessions,watchdog"'
REMOTE_PATH='/data/www/ereolen_dk/htdocs/sites/default/files'
REMOTE_EXCLUDE=(advagg_* css ctools js languages resize styles ting)
LOCAL_PATH='web/sites/default/files'

Install itkdev-docker-compose from https://github.com/aakb/itkdev-docker and run

itkdev-docker-compose sync:db

Building themes

Same procedure as documented in Building themes, but with a slightly different path (/app/web/ rather than /app/):

docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/orwell install
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/orwell build
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/wille install
docker-compose run --rm node yarn --cwd /app/web/sites/all/themes/wille build

Development

We need PHP 7.0 and want to keep this old shit to itself. Hence, we install it inside an isolated Homebrew area (cf. Multiple installations).

Run

scripts/php7.0-install

to install PHP 7.0.

Start the show:

cd ereolen
docker-compose up -d
../scripts/php7.0-discover # Make PHP 7.0 discoverable to symfony
../scripts/symfony serve

Utility scripts

Must be run from inside a site folder (e.g. ereolen/web):

../../scripts/drush
../../scripts/phpcs
../../scripts/phpcbf
../../scripts/symfony

eReolen Go!

The same story, but in the ereolengo folder.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published