-
Notifications
You must be signed in to change notification settings - Fork 0
7. Installation
git clone --branch 1.0.0-beta1 https://github.com/digitalutsc/isle-dc.git isle-dc-lite
cd isle-dc-lite
make lite_dev
make clean
composer clear-cache
make lite_dev
Environment Setup:
-
Install WSL2 and Ubuntu. Instructions for doing so can be found on the Ubuntu Website and the Microsoft Website
-
Download and install Docker Desktop for Windows. In Docker Desktop, navigate to Settings (gear icon in the menu bar) > Resources > WSL Integration and check "Enable integration with my default WSL distro". Also, under "Enable integration with additional distros," turn on the Ubuntu distribution you are using. If WSL2 is currently running, close it by running
wsl --shutdown
in an elevated Powershell window.NOTE: You should not ever have to run Docker Desktop with elevated privileges (as administrator). If a message appears stating that the current user does not have privilleges, run this command in an elevated Command Prompt window:
net localgroup docker-users "your-user-id" /ADD
NOTE: If a message appears stating that you should convert from WSL1 to WSL2, run the following in a normal (non-elevated) Windows Command Prompt
wsl --set-version Ubuntu-<VERSION NUMBER> 2 wsl --list --verbose # the version number next to the Ubuntu distribution should be 2
-
Install GNU make.
sudo apt install make
-
Open WSL2 (Start > Ubuntu Version) and run the build commands found above. Make sure to clone the isle-dc repository within the WSL2 filesystem (do not clone in /mnt or any of its subdirectories).
-
Check if everything works. There should be a Drupal website present at https://islandora.traefik.me/
The following instructions only to setup the Drupal based site. Other required components such as Solr, Image Server, Blazegraph etc are assumed to be installed and available. To install drupal, you need to setup a domain, with it pointing to the site_dir. Further, you need a database.
- Clone the repo
git clone -b config_sync_context https://github.com/digitalutsc/islandora-sandbox.git site_dir
- Paste the database info into assets/patches/default_settings.txt
$databases['default']['default'] = array (
'database' => '####',
'username' => '###',
'password' => '###',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'driver' => 'mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
- Install Drupal code via composer
sudo composer install
- Setup private files dir
from the site_dir, you can issue the following command. Restrict it as required.
mkdir web/sites/default/private
- Install the site
sudo ./vendor/drush/drush/drush si -y --existing-config minimal --account-pass {{ password }}
- Ingest required taxonomy terms
sudo ./vendor/drush/drush/drush migrate:import islandora_tags
- Configure the endpoints for solr, image server and blazegraph as required.
https://github.com/digitalutsc/islandora-playbook/tree/islandora_lite (please note that playbook is currently behind few steps!)
Usually it can be run as deployment for each site (https://github.com/digitalutsc/islandora_lite_installation/blob/main/scripts/install_theme.sh), but this is meant for the scenario which theme has be be install manually.
- clone https://github.com/digitalutsc/dsu_sites_config to the Drupal site directory:
git clone https://github.com/digitalutsc/dsu_sites_config "${site_path}"/dsu_sites_config
- Download utsc logo
wget -P "${site_path}"/web/sites/default/files https://digital.utsc.utoronto.ca/sites/default/files/logo.svg
- Make sure ssh-key is setup, and be able to download private github repo
git clone git@github.com:digitalutsc/dsu_subtheme_barrioDepartments.git "${site_path}"/web/themes/contrib/dsu_subtheme_barrioDepartments
- Clear cache
drush cr
- Enable theme
drush -y then barriodepartments
drush -y config-set system.theme default barriodepartments
- Import theme settings
drush -y config-import --partial --source="${site_path}"/dsu_sites_config/all/themes
- Import custom blocks in header and footers
drush ib
- Import all default blocks (run it with with sites which has Islandora_lite content model)
drush -y config-import --partial --source="${site_path}"/dsu_sites_config/all/blocks
- Clear caches
drush cr
- Enable drupal_hero_banner module
- Go to /admin/content, add media > Hero Banner Image
- Configure Hero Description
==> it's for
- Configure Hero Image:
==> it's for
- Go to
/admin/structure/block
, placeHero banner: 16:9 and 16:5 Mixed aspect ratio - Hero banner - front page
in a region
-
Go to /admin/content >
Add content
>Landing page
, In Hero Banner (Homepage Only), click add Media, and select the newly added media as -
Go to
/admin/config/system/site-information
, set the new create Landing page as Front page.
- Example: https://memory.digital.utsc.utoronto.ca/browse-subjects OR https://find.digital.utsc.utoronto.ca/browse-types
- Download the following config files at https://github.com/digitalutsc/dsu_sites_config/tree/main/memory/browse_by_subject
- Run the drush config:import on those config files:
drush -y config-import --partial --source="...."
-
Deployment Script: https://github.com/digitalutsc/islandora_lite_installation/blob/main/scripts/access_control.sh
-
Install Islandora Group by composer:
composer require digitalutsc/islandora_group
- By that, it will install the dependency modules:
"drupal/group": "^3.0@RC",
"drupal/groupmedia": "^4.0@alpha",
"drupal/group_permissions":"^2.0@alpha",
"drupal/rules" : "^3.0@alpha",
"drupal/media_library_edit":"^3.0"
Install module islandora_group_defaults to have default general setup for Repository Items model setup
composer require digitalutsc/islandora_group_defaults
- Enable the modules:
drush -y pm:enable group groupmedia group_permissions gnode islandora_group_defaults media_library_edit
drush en -y islandora_group
Note: If newly created groups don't show up in admin/group
, make sure current logged in user has role as Administrator role.
- In Islandora Group module configuration
/admin/config/access-control/islandora_group
,- select "Islandora_access" in For Private Group
- select "field_access_terms" for Node and Media sections.
- Create a
private_file
directory at the same directory offiles
at/web/sites/default
mkdir web/sites/default/private_files
- Change ownership of
private_files
chown -R www-data:www-data web/sites/default/private_files
- Open the
settings.php
in editor, find "file_private_path"
sudo nano web/sites/default/settings.php
-
Replace the line
# $settings['file_private_path'] = '';
with$settings['file_private_path'] = 'sites/default/private_files';
, then save the file. -
Go to your site, visit
/admin/config/media/file-system
, In the Default download method, switch fromPublic local files served by the webserver
toPrivate local files served by Drupal
. -
For Starter Site, in media types below:
- Audio media: in
admin/structure/media/manage/audio/fields
, - Document media: in
admin/structure/media/manage/document/fields
, - Extracted Text media: in
admin/structure/media/manage/extracted_text/fields
, - File media: in
admin/structure/media/manage/file/fields
, - FITS Technical Metadata media: in
admin/structure/media/manage/fits_technical_metadata/fields
, - Image media: in
admin/structure/media/manage/image/fields
, - Video media: in
admin/structure/media/manage/video/fields
,
- Audio media: in
-
Select any files, audio, image, fields, then Field Settings, if there is any selection on "Public Files", switch to
Private files
in Upload destination instead. -
For Starter Site, in actions below
- http://localhost:8000/admin/config/system/actions/configure/digital_document_generate_a_thumbnail_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/image_generate_a_service_file_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/image_generate_a_thumbnail_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/video_generate_a_service_file_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/video_generate_a_thumbnail_at_0_00_03
- http://localhost:8000/admin/config/system/actions/configure/video_generate_a_thumbnail_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/audio_generate_a_service_file_from_an_original_file
- http://localhost:8000/admin/config/system/actions/configure/generate_a_technical_metadata_derivative
-
Run the ingest with Islandora Workbench.