forked from Islandora-Devops/isle-dc
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from jhu-idc/move_to_scripts
Move to scripts
- Loading branch information
Showing
25 changed files
with
394 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/.git* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
# syntax=docker/dockerfile:experimental | ||
# Dockerfile for drupal-static build | ||
|
||
ARG REPOSITORY | ||
ARG TAG | ||
FROM ${REPOSITORY}/drupal:${TAG} | ||
|
||
RUN --mount=type=bind,source=codebase,target=/build \ | ||
cp -r /build/* /var/www/drupal && \ | ||
bash /var/www/drupal/fix_permissions.sh /var/www/drupal/web nginx | ||
USER nginx | ||
|
||
# Run composer install as application user: | ||
# Normal startup (via /init) must also happen as root | ||
USER root | ||
COPY --chown=nginx:www-data codebase /var/www/drupal/ | ||
COPY --chown=0:0 rootfs / | ||
|
||
RUN COMPOSER_MEMORY_LIMIT=-1 COMPOSER_DISCARD_CHANGES=true composer install --no-interaction --no-progress && \ | ||
chmod 0750 /var/www/drupal/fix_permissions.sh && \ | ||
/var/www/drupal/fix_permissions.sh /var/www/drupal/web nginx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.