This repository contains the source code for the International Cancer Research Partnership website.
In the current directory, run:
docker-compose build
docker-compose up -dTo use the alternative docker-compose-dev.yml for local development, run:
docker-compose -f docker-compose-dev.yml build
docker-compose -f docker-compose-dev.yml up -dIf you have any services running on the host (eg: mysql), ensure that your settings.php database entries use host.docker.internal as the host.
If database services are running behind a bastion host, use the following command to use ssh as a proxy:
ssh -i $PRIVATE_KEY -N -L $LOCAL_SERVICE_PORT:$REMOTE_SERVICE_HOST:$REMOTE_SERVICE_PORT $BASTION_USER@$BASTION_HOST- httpd_2.4
- php_7.x
- gd
- json
- mbstring
- mysqlnd
- pdo
- pdo_mysql
- pdo_sqlsrv
- xml
- opcache
- pecl-apcu
- php-fpm
- composer
- drush
## Assuming the document root is under the "web" directory:
git clone https://github.com/CBIIT/icrp web
## Set up site dependencies
cd web
composer install
## Make sure a settings.php file exists (copy default settings)
cp -f ./sites/default/default.settings.php ./sites/default/default.php
## Copy your settings.local.php file to /sites/default/settings.local.php
cp ~/settings.local.php ./sites/default/settings.local.php
## Restore the MySQL database from the icrp-2.0.sql file.
## For example, assuming we have defined a "drupal" database:
mysql drupal < ./database/MYSQL/SQL_dump/icrp-2.0.sql
## Update drupal database (if needed)
drush updatedb
## Update entities (optional)
drush entity-updates
## Rebuild drupal cache
drush cr