forked from Islandora-Devops/isle-buildkit
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from Islandora-Devops/main
Updating from upstream
- Loading branch information
Showing
13 changed files
with
98 additions
and
14 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,18 @@ | ||
#!/usr/bin/with-contenv bash | ||
set -e | ||
|
||
# Read any secret files specified in environment variables. | ||
echo "$(env | grep '=secret:')" | while read line | ||
do | ||
# Skip empty lines | ||
[[ -z $line ]] && continue | ||
|
||
# Hack out the path to the secret. | ||
environment_variable=$(echo $line | cut -d= -f1) | ||
secret=$(echo $line | cut -d= -f2 | cut -d: -f2) | ||
|
||
# Load the secret's value into the environment variable | ||
if [ -f ${secret} ]; then | ||
s6-env -i ${environment_variable}="$(cat ${secret})" s6-dumpenv -- /var/run/s6/container_environment | ||
fi | ||
done |
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
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 |
---|---|---|
|
@@ -2,8 +2,22 @@ | |
# -*- mode: sh -*- | ||
# vi: set ft=sh: | ||
with-contenv | ||
# If traefik is not found allow any IP address. | ||
backtick -D 0.0.0.0 -n TRAEFIK_IP { | ||
redirfd -w 2 /dev/null | ||
backtick -i -n CAPTURE { | ||
getent hosts traefik | ||
} | ||
importas CAPTURE CAPTURE | ||
pipeline { | ||
echo ${CAPTURE} | ||
} | ||
awk "{ print $1 }" | ||
} | ||
multisubstitute | ||
{ | ||
# Non-site specific variables | ||
importas REVERSE_PROXY_IPS TRAEFIK_IP | ||
# Default settings to apply if none given. | ||
define ACCOUNT_EMAIL "[email protected]" | ||
define ACCOUNT_NAME "admin" | ||
|
@@ -49,6 +63,9 @@ foreground { | |
# environment as seen by linked containers. | ||
# Variables can only be seen when using '#!/usr/bin/with-contenv' | ||
s6-env -i | ||
# Non-site specific variables. | ||
DRUPAL_REVERSE_PROXY_IPS="{{ getv "/reverse/proxy/ips" "${REVERSE_PROXY_IPS}" }}" | ||
# Default site. | ||
DRUPAL_DEFAULT_ACCOUNT_EMAIL="{{ getv "/default/account/email" "${ACCOUNT_EMAIL}" }}" | ||
DRUPAL_DEFAULT_ACCOUNT_NAME="{{ getv "/default/account/name" "${ACCOUNT_NAME}" }}" | ||
DRUPAL_DEFAULT_ACCOUNT_PASSWORD="{{ getv "/default/account/password" "${ACCOUNT_PASSWORD}" }}" | ||
|
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
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
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,4 +1,4 @@ | ||
#!/usr/bin/execlineb -P | ||
# -*- mode: sh -*- | ||
# vi: set ft=sh: | ||
/usr/sbin/php-fpm7 | ||
/usr/sbin/php-fpm7 --pid /var/run/php-fpm7/php-fpm7.pid --prefix /var/run/php-fpm7 --fpm-config /etc/php7/php-fpm.conf |