Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

Add password and domain process improvements #334

Closed DonRichards closed 1 year ago

DonRichards commented 1 year ago

Continuing on efforts originally here https://github.com/Islandora-Devops/isle-dc/pull/330

The default Drupal password could contain characters that could be interpreted as syntax; this should help escape the characters.

This also adds the domain change to the demo content function.

How to test

  1. Copy secrets/template to secrets/live cp -r secrets/template/* secrets/live/
  2. Add a semicolon ";" to the secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD file
  3. Copy the sample.env file to .env (cp sample.env .env) and change domain from DOMAIN=islandora.traefik.me to DOMAIN=test.traefik.me
  4. Run make starter_dev or any other method to get isle-dc running
  5. Open browser to https://test.traefik.me and verify the site loads.
  6. Run make demo_content

It should complete without errors, the site should now show the imported content and if you check islandora_workbench/islandora_workbench_demo_content/example_content.yml file it should look like this

task: create
host: https://test.traefik.me/
username: admin
password: ";password"
input_dir: /workbench/islandora_workbench_demo_content/demo_content_files
input_csv: demo_content.csv
allow_missing_files: true
allow_adding_terms: true
media_use: "'Thumbnail Image'|'Original File'"
log_json: true