Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install profile #170

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2bd3669
Updating sandbox commit
dannylamb Apr 13, 2021
1f86ff8
Trying to pull in the install profile
dannylamb Apr 15, 2021
6b7f0ff
Using install profile variable when installing Drupal with Drush
dannylamb Apr 16, 2021
2fc70cf
Bumping sandbox commit
dannylamb Apr 23, 2021
9313caa
Setting content sync directory
dannylamb Apr 27, 2021
bda0981
Fixing content_sync directories
dannylamb May 17, 2021
69c9f9d
Bumping islandora-sandbox
dannylamb May 17, 2021
91f2b37
Bumping sandbox again
dannylamb May 17, 2021
c2d65ae
Merging in upstream
dannylamb Jul 16, 2021
21a732e
Updating sandbox hash
dannylamb Nov 22, 2021
5205186
Merge branch 'main' into install-profile
dannylamb Nov 23, 2021
4f16354
Merge branch 'install-profile' of github.com:Islandora-Devops/isle-bu…
dannylamb Nov 23, 2021
aed5adc
Update commit for islandora-sandbox and use official repo.
rosiel Dec 14, 2021
871142d
Install profile review (#177)
nigelgbanks Jan 5, 2022
b07d96f
Merge branch 'main' into install-profile
nigelgbanks Jan 13, 2022
78e2348
Refactor how we set/restore ownership of drupal settings file to allo…
jasonhildebrand Jan 13, 2022
25edadb
Added LDAP extension to nginx/php image. (#181)
nigelgbanks Jan 25, 2022
a65eb49
If SOLR config.zip cannot be produced, show useful error message. (#182)
jasonhildebrand Feb 1, 2022
b8de904
Updating sandbox commit
dannylamb Apr 13, 2021
8afd7be
Trying to pull in the install profile
dannylamb Apr 15, 2021
fac6648
Using install profile variable when installing Drupal with Drush
dannylamb Apr 16, 2021
27fea4b
Bumping sandbox commit
dannylamb Apr 23, 2021
598e9aa
Setting content sync directory
dannylamb Apr 27, 2021
c55ad3f
Fixing content_sync directories
dannylamb May 17, 2021
7cf1172
Bumping islandora-sandbox
dannylamb May 17, 2021
4b52d5b
Bumping sandbox again
dannylamb May 17, 2021
2b69382
Updating sandbox hash
dannylamb Nov 22, 2021
168d030
Update commit for islandora-sandbox and use official repo.
rosiel Dec 14, 2021
fa96351
Install profile review (#177)
nigelgbanks Jan 5, 2022
211bfff
Rebase onto main.
rosiel Feb 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 2 additions & 43 deletions demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG repository=local
ARG tag=latest
FROM --platform=$BUILDPLATFORM ${repository}/composer:${tag} AS composer

ARG COMMIT=c4a7574e39ba07e1baa51a0d145da1328e7d9ed1
ARG COMMIT=67b8e87ddd5c5b5a01522aaf3129ad4c661cb76d

# Islandora based Drupal install.
RUN --mount=type=cache,id=demo-composer,sharing=locked,target=/root/.composer/cache \
Expand All @@ -15,48 +15,7 @@ RUN --mount=type=cache,id=demo-composer,sharing=locked,target=/root/.composer/ca
--commit "${COMMIT}" \
--worktree /var/www/drupal && \
cd /var/www/drupal && \
composer install && \
# Set up libraries
mkdir -p /var/www/drupal/web/libraries && \
# PDF.js
PDFJS_VERSION="2.0.943" && \
PDFJS_FILE="pdfjs-${PDFJS_VERSION}-dist.zip" && \
PDFJS_URL="https://github.com/mozilla/pdf.js/releases/download/v${PDFJS_VERSION}/${PDFJS_FILE}" && \
PDFJS_SHA256="381683b05f494fe28e11185f98a238b34a663b1b41b5432aa769ca493e5cd087" && \
download.sh --url "${PDFJS_URL}" --sha256 "${PDFJS_SHA256}" "${DOWNLOAD_CACHE_DIRECTORY}" && \
mkdir -p /var/www/drupal/web/libraries/pdf.js && \
unzip "${DOWNLOAD_CACHE_DIRECTORY}/${PDFJS_FILE}" -d /var/www/drupal/web/libraries/pdf.js && \
# Views Slideshow Dependencies
## jquery.cycle
JQUERY_CYCLE_FILE="jquery.cycle.all.js" && \
JQUERY_CYCLE_URL="https://malsup.github.io/${JQUERY_CYCLE_FILE}" && \
JQUERY_CYCLE_SHA256="58b44d975e1e1f0664d0fb8ab5b2918d08e9497324a021aa93de5894cdb586d4" && \
mkdir -p /var/www/drupal/web/libraries/jquery.cycle && \
download.sh --url "${JQUERY_CYCLE_URL}" --sha256 "${JQUERY_CYCLE_SHA256}" /var/www/drupal/web/libraries/jquery.cycle && \
## jquery.hoverIntent
JQUERY_HOVER_INTENT_FILE="jquery.hoverIntent.js" && \
JQUERY_HOVER_INTENT_URL="https://raw.githubusercontent.com/briancherne/jquery-hoverIntent/master/${JQUERY_HOVER_INTENT_FILE}" && \
JQUERY_HOVER_INTENT_SHA256="65f5f7e1298fe71f10290f4068df30b38a5df0106d6feb63210ddabcc67c3e59" && \
download.sh --url "${JQUERY_HOVER_INTENT_URL}" --sha256 "${JQUERY_HOVER_INTENT_SHA256}" "${DOWNLOAD_CACHE_DIRECTORY}" && \
mkdir -p /var/www/drupal/web/libraries/jquery.hoverIntent && \
cp "${DOWNLOAD_CACHE_DIRECTORY}/${JQUERY_HOVER_INTENT_FILE}" /var/www/drupal/web/libraries/jquery.hoverIntent && \
## jquery.pause
JQUERY_PAUSE_FILE="jquery.pause.js" && \
JQUERY_PAUSE_URL="https://raw.githubusercontent.com/tobia/Pause/master/${JQUERY_PAUSE_FILE}" && \
JQUERY_PAUSE_SHA256="39505a2a9fe36fce5b987f6804723d323ac86d0ed7220a5c12094f1d698fce33" && \
download.sh --url "${JQUERY_PAUSE_URL}" --sha256 "${JQUERY_PAUSE_SHA256}" "${DOWNLOAD_CACHE_DIRECTORY}" && \
mkdir -p /var/www/drupal/web/libraries/jquery.pause && \
cp "${DOWNLOAD_CACHE_DIRECTORY}/${JQUERY_PAUSE_FILE}" /var/www/drupal/web/libraries/jquery.pause && \
## json2
JSON2_FILE="jquery.pause.js" && \
JSON2_URL="https://raw.githubusercontent.com/tobia/Pause/master/${JSON2_FILE}" && \
JSON2_SHA256="39505a2a9fe36fce5b987f6804723d323ac86d0ed7220a5c12094f1d698fce33" && \
download.sh --url "${JSON2_URL}" --sha256 "${JSON2_SHA256}" "${DOWNLOAD_CACHE_DIRECTORY}" && \
mkdir -p /var/www/drupal/web/libraries/json2 && \
cp "${DOWNLOAD_CACHE_DIRECTORY}/${JSON2_FILE}" /var/www/drupal/web/libraries/json2 && \
# Openseadragon
mkdir -p /var/www/drupal/web/sites/default/files/library-definitions && \
cp /var/www/drupal/web/modules/contrib/openseadragon/openseadragon.json /var/www/drupal/web/sites/default/files/library-definitions
composer install

FROM ${repository}/drupal:${tag}

Expand Down
22 changes: 22 additions & 0 deletions drupal/rootfs/etc/islandora/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,23 @@ function install_site {
chmod a=rwx "${site_directory}/settings.php"
fi

echo "--driver ${driver}"
echo "--host ${host}"
echo "--port ${port}"
echo "--dbuser ${user}"
echo "--dbpassword ${password}"
nigelgbanks marked this conversation as resolved.
Show resolved Hide resolved
echo "--dbname ${db_name}"
echo "PROFILE: ${profile}"
echo "--account-mail=${account_email}"
echo "--account-name=${account_name}"
echo "--account-pass=${account_password}"
echo "--site-mail=${site_email}"
echo "--locale=${site_locale}"
echo "--site-name=${site_name}"
echo "--sites-subdir=${subdir}"
echo "USE_EXISTIG_CONFIG: ${use_existing_config_arg}"
echo "EVERYTHING ELSE: ${@}"

/usr/local/bin/install-drupal-site.sh \
--driver "${driver}" \
--host "${host}" \
Expand Down Expand Up @@ -317,6 +334,11 @@ function update_settings_php {
chmod a=rwx "${site_directory}/settings.php"
fi

if ! grep -q 'global \$content_directories;' ${site_directory}/settings.php; then
echo 'global $content_directories;' >> ${site_directory}/settings.php
echo '$content_directories["sync"] = "/var/www/drupal/content/sync";' >> ${site_directory}/settings.php
fi

drush -l "${site_url}" islandora:settings:create-settings-if-missing
drush -l "${site_url}" islandora:settings:set-hash-salt "${salt}"
drush -l "${site_url}" islandora:settings:set-flystem-fedora-url "${fedora_url}"
Expand Down
1 change: 1 addition & 0 deletions drupal/rootfs/usr/local/bin/install-drupal-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function main {
protocol=pgsql
fi
echo "Installing site."
echo "-n si ${DRUSH_ARGS} --db-url=${protocol}://${DB_USER}:${DB_PASSWORD}@${HOST}:${PORT}/${DB_NAME}"
nigelgbanks marked this conversation as resolved.
Show resolved Hide resolved
drush \
-n \
si ${DRUSH_ARGS} \
Expand Down