-
Notifications
You must be signed in to change notification settings - Fork 14
Mirador #42
base: master
Are you sure you want to change the base?
Mirador #42
Conversation
…kips a few steps of mirador install for you.
added needed line to Vagrant file for /scripts/mirador.sh currently commented out bc I haven't tested a clean build of all this together.
scripts/mirador.sh
Outdated
|
||
rm /tmp/mirador-8.x-1.x-dev.zip | ||
|
||
#echo 'drush en mirador -y' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
Ahhh I didn't realize there was a new PR. This supercedes #41. |
@flummingbird so the only thing I would suggest is to perhaps take a look at this section of another script. We download into a specific location and only if the file doesn't exist. That way if you do a Reduces time on rebuilding and allows you to build a machine while offline. |
@flummingbird once you take care of @whikloj's request, I'll test. Let me know if you need a hand with what @whikloj is talking about. |
conditional download and enabling, prevents repeated downloads, and uses proper $DOWNLOAD_DIR variable. I have tested it locally and it works like a charm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made some changes, I believe it is ready.
uncouple download to wait for each check. Enable and unzip go outside the conditional downloads.
puts unzip back in conditional check.
Vagrantfile
Outdated
@@ -57,6 +57,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |||
config.vm.provision :shell, :path => "./scripts/islandora-karaf-components.sh", :args => home_dir | |||
config.vm.provision :shell, :path => "./scripts/config.sh", :args => home_dir | |||
config.vm.provision :shell, :path => "./scripts/crayfish.sh", :args => home_dir | |||
config.vm.provision :shell, :path => "./scripts/mirador.sh", :args => home_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be after drupal.sh
https://github.com/Islandora-CLAW/claw_vagrant/blob/master/Vagrantfile#L51
scripts/mirador.sh
Outdated
if [ ! -f "$DOWNLOAD_DIR/master.zip" ]; then | ||
echo "Downloading mirador-js dependencies" | ||
cd "$DOWNLOAD_DIR" && { curl -LOk https://github.com/NVLI/mirador-js/archive/master.zip; cd -;} | ||
cd "$DRUPAL_HOME"/web/libraries && { unzip "$DOWNLOAD_DIR"/master.zip -d . ;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flummingbird this line needs to move outside the if...fi
(line 16) as it should occur whenever a box is provisioned and is separate from the downloading.
The way I think of it is that lines 10-12, is just checking if you have downloading the application before.
Then line 13 is deploying that application into your vagrant machine.
So you can conceivably run lines 10-12 once and use line 13 waaaaaay more than that.
scripts/mirador.sh
Outdated
if [ ! -f "$DOWNLOAD_DIR/mirador-8.x-1.x-dev.zip" ]; then | ||
echo "Downolading mirador drupal module" | ||
cd "$DOWNLOAD_DIR" && { curl -LOk https://ftp.drupal.org/files/projects/mirador-8.x-1.x-dev.zip ;} | ||
cd "$DRUPAL_HOME"/web/modules/contrib/ && { unzip "$DOWNLOAD_DIR"/mirador-8.x-1.x-dev.zip -d . ;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing as described above
scripts/mirador.sh
Outdated
fi | ||
|
||
if [ ! -f "$DOWNLOAD_DIR/mirador-8.x-1.x-dev.zip" ]; then | ||
echo "Downolading mirador drupal module" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo Downolading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phooey
typey type-OH
unzips outside of DL function.
vagrant up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whikloj I'll leave you to merge this once you're good with it.
🕺 |
@flummingbird just wanted to let you know, I haven't forgotten about this. I think due to the Mirador module only working against the |
GitHub Issue: (Islandora/documentation#645)
What does this Pull Request do?
downloads the drupal 8 mirador module, which is note based off of core mirador but rather an obscure drupal friendly branch. Also pulls the mirador javascript dependency.
Feedback todos from last pull request have been completed.
Downloads and installs mirador drupal8 module, and JavaScript dependencies.
What's new?
permission issues fixed thanks to @ruebot @whikloj and @dannylamb
Added scripts/mirador.sh
Could this change impact execution of existing code?
no
How should this be tested?
clone the repository
cd into repository folder
vagrant up
check localhost:8000/admin/config/media/mirador
Additional Notes:
I branched my own fork, I'm not sure if I can create a branch on the offical claw_vagrant to merge my PR into. Suggestions?
Interested parties
@Islandora-CLAW/committers @whikloj @ruebot @dannylamb