Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Digital-Grinnell's full-sized avatar

Digital Grinnell Digital-Grinnell

View GitHub Profile
@Digital-Grinnell
Digital-Grinnell / local.sh
Created November 5, 2019 14:40
My ISLE-1.3.0 local.sh
#!/bin/bash
# Replace the following with your intended Local environment values
# Add the name of your local site name to .localdomain.key (e.g. yourprojectnamehere.localdomain.key)
# Add the name of your local site name to .localdomain.pem (e.g. yourprojectnamehere.localdomain.pem)
# Add the name of your local site name to CN=.localdomain (e.g. CN=yourprojectnamehere.localdomain)
# Optional: You may change the organization ("O=") name (e.g. O=Your Organization)
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout ../../../config/proxy/ssl-certs/dg.localdomain.key -out ../../../config/proxy/ssl-certs/dg.localdomain.pem \
-subj "/C=US/O=Grinnell College Libraries/OU=Domain Control Validated/CN=dg.localdomain"
@Digital-Grinnell
Digital-Grinnell / traefik.local.toml
Created November 5, 2019 14:43
My ISLE-1.3.0 traefik.local.toml
################################################################
# Global configuration
################################################################
# Enable debug mode
# debug = true
# Log level
logLevel = "ERROR"
@Digital-Grinnell
Digital-Grinnell / settings.local.php
Created November 19, 2019 00:57
My ISLE-1.3.0 settings.local.php file
<?php
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
* If you make changes to this file, be sure to protect it again after making
* your modifications. Failure to remove write permissions to this file is a
@Digital-Grinnell
Digital-Grinnell / local.env
Last active November 19, 2019 13:36
My ISLE-1.3.0 local.env, now with an ISLE-Drupal-Build-Tools override (see line 40 and below).
## ISLE Local
## This local.env file is used with / for the docker-compose.local.yml
## Windows user should uncomment the following line:
# COMPOSE_CONVERT_WINDOWS_PATHS=1
## Database (SQL)
### MySQL root password
@Digital-Grinnell
Digital-Grinnell / gist:dbdc3a2f46dc5c3bbf7176e1384202d5
Created December 1, 2019 21:52
ISLE Installer Script Output
Using Drush makefile to create sample Drupal site within /tmp/drupal_install
Beginning to build /utility-scripts/isle_drupal_build_tools/isle-drush_make/drupal.drush.make. [ok]
drupal-7.67 downloaded. [ok]
Project views_bulk_operations contains 2 modules: views_bulk_operations, actions_permissions.
views_bulk_operations-7.x-3.5 downloaded. [ok]
Project admin_menu contains 3 modules: admin_devel, admin_menu_toolbar, admin_menu.
admin_menu-7.x-3.0-rc6 downloaded.
@Digital-Grinnell
Digital-Grinnell / gist:bc47f4528e702f1afeb58ceaab66b28c
Created December 2, 2019 00:32
Output from `drush cc all` after restoring from the production database
root@58c07f47d6d9:/# cd /var/www/html/sites/default/
root@58c07f47d6d9:/var/www/html/sites/default# drush -u 1 cc all
The following module is missing from the file system: <em class="placeholder">masquerade</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the [warning]
documentation page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">announcements</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the [warning]
documentation page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">dg7</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the documentation[warning]
page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">email</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">
@Digital-Grinnell
Digital-Grinnell / gist:353fc06917db78d904a084b94d9b9982
Created December 2, 2019 00:44
Output from 'drush cc all' after downloading missing Drupal modules
root@58c07f47d6d9:/var/www/html/sites/default# drush cc all
The following module is missing from the file system: <em class="placeholder">dg7</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the documentation[warning]
page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">idu</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the documentation[warning]
page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">ihc</em>. For information about how to fix this, see <a href="https://www.drupal.org/node/2487215">the documentation[warning]
page</a>. bootstrap.inc:1156
The following module is missing from the file system: <em class="placeholder">islandora_binary_object</em>. For information about how to fix this, see <a [warning]
href="https://www.drupal.org/node/2487215">the documentation
@Digital-Grinnell
Digital-Grinnell / gist:554ec36828e0e4f9b8f7c8e499a8221b
Created February 3, 2020 21:06
Commands and output from fixing IMI
root@f92e4600f9d7:/var/www/html/sites/all/modules/islandora/islandora_multi_importer# git remote -v
origin https://github.com/DigitalGrinnell/islandora_multi_importer (fetch)
origin https://github.com/DigitalGrinnell/islandora_multi_importer (push)
root@f92e4600f9d7:/var/www/html/sites/all/modules/islandora/islandora_multi_importer# git status
HEAD detached at 78c06b7
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
@Digital-Grinnell
Digital-Grinnell / gist:3b87226cc98e8bb7ddd61a8416d69ab1
Created August 31, 2020 15:15
Output from isle_drupal_build_tools and isle_islandora_installer.sh
╭─markmcfate@MAD25W812UJ1G9 ~/GitHub/dg-isle ‹ruby-2.3.0› ‹master›
╰─$ docker-compose up -d
Starting isle-portainer-ld ... done
Starting isle-mysql-ld ... done
Starting isle-proxy-ld ... done
Starting isle-solr-ld ... done
Starting isle-fedora-ld ... done
Starting isle-apache-ld ... done
Starting isle-images-ld ... done
╭─markmcfate@MAD25W812UJ1G9 ~/GitHub/dg-isle ‹ruby-2.3.0› ‹master›
@Digital-Grinnell
Digital-Grinnell / gist:f0d592659008b9c03578e31753f826d4
Last active October 6, 2020 20:00
Commands and output from node DGDockerX and the creation of https://dg-staging.grinnell.edu.
# The following is an abridged transcript of terminal commands and output
# from node DGDockerX and the creation of https://dg-staging.grinnell.edu.
cd /opt/dg-isle/acme
docker-compose up -d; docker-compose logs
#
# LE staging
docker exec -it acme --issue --dns dns_azure --server https://acme-staging-v02.api.letsencrypt.org/directory -d dgdockerx.grinnell.edu --domain-alias _acme-challenge.leverify.info --key-file /certs/dgdockex.grinnell.edu.key --cert-file /certs/dgdockerx.grinnell.edu.cert --standalone --force
docker exec -it acme --issue --dns dns_azure --server https://acme-staging-v02.api.letsencrypt.org/directory -d dg-staging.grinnell.edu --domain-alias _acme-challenge.leverify.info --key-file /certs/dg-staging.grinnell.edu.key --cert-file /certs/dg-staging.grinnell.edu.cert --standalone --force
#docker exec -it acme --issue --dns dns_azure --server https://acme-staging-v02.api.letsencrypt.org/directory -d isle-stage.grinnell.edu --domain-alias _acme-challenge.leverify.info --key-file /certs/isle-s