Skip to content

Commit

Permalink
Merge pull request #1 from digitalutsc/access-control
Browse files Browse the repository at this point in the history
Include access control modules and configs into islandora Lite build
Change CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY to ScriptLookupStrategy to avoid 403 in OSD viewer
  • Loading branch information
kylehuynh205 authored Jun 28, 2023
2 parents 46fc5d6 + f64d8f6 commit e826c7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion custom.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lite_dev: QUOTED_CURDIR = "$(CURDIR)"
lite_dev: generate-secrets
$(MAKE) lite-init ENVIRONMENT=local
if [ -z "$$(ls -A $(QUOTED_CURDIR)/codebase)" ]; then \
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone https://github.com/digitalutsc/islandora-sandbox.git --branch 1.0.0-beta1 /home/root;'; \
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone -b access_control https://github.com/digitalutsc/islandora-sandbox.git /home/root;'; \
fi
$(MAKE) set-files-owner SRC=$(CURDIR)/codebase ENVIRONMENT=local
docker-compose up -d --remove-orphans
Expand All @@ -42,6 +42,9 @@ lite_dev: generate-secrets
-docker-compose exec -T drupal drush -y config:set media_thumbnails_video.settings ffprobe /usr/bin/ffprobe
docker-compose restart drupal

# create private file directory
docker-compose exec -T drupal mkdir -p $(CURDIR)/codebase/web/sites/default/private_files

# install the site
docker-compose exec -T drupal with-contenv bash -lc 'composer install'
$(MAKE) lite-finalize ENVIRONMENT=local
Expand All @@ -51,6 +54,7 @@ lite-finalize:
docker-compose exec -T drupal with-contenv bash -lc 'chown -R nginx:nginx .'
$(MAKE) drupal-database update-settings-php
docker-compose exec -T drupal with-contenv bash -lc "drush si -y --existing-config minimal --account-pass '$(shell cat secrets/live/DRUPAL_DEFAULT_ACCOUNT_PASSWORD)'"
docker-compose exec -T drupal with-contenv bash -lc "drush -l $(SITE) user:role:add administrator admin"
MIGRATE_IMPORT_USER_OPTION=--userid=1 $(MAKE) lite_hydrate
$(MAKE) login

3 changes: 2 additions & 1 deletion sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,5 @@ WATCHTOWER_MEMORY_LIMIT=2G
# Configuration to enable the custom delegate script for Cantaloupe
CANTALOUPE_DELEGATE_SCRIPT_ENABLED=true
CANTALOUPE_DELEGATE_SCRIPT_PATHNAME=/opt/tomcat/bin/delegates.rb
CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY=BasicLookupStrategy
CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY=ScriptLookupStrategy
CANTALOUPE_HTTPS_URCE_LOOKUP_STRATEGY=ScriptLookupStrategy

0 comments on commit e826c7a

Please sign in to comment.