Skip to content

Commit

Permalink
Add splash and version to entrypoint log output
Browse files Browse the repository at this point in the history
  • Loading branch information
daledavies committed Jul 7, 2022
1 parent 0628914 commit de09a06
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
#!/usr/bin/env bash
set -Eeuo pipefail

if [ -z "${DEVELOPMENT-}" ]; then
echo >&2 "-------------------------------------------------------------"

echo >&2 "-------------------------------------------------------------"
echo >&2 "";
echo >&2 " ██ ██ ██ ███ ███ ██████"
echo >&2 " ██ ██ ██ ████ ████ ██ ██"
echo >&2 " ██ ██ ██ ██ ████ ██ ██████"
echo >&2 "██ ██ ██ ██ ██ ██ ██ ██"
echo >&2 " █████ ██████ ██ ██ ██"
echo >&2 "";
echo >&2 "https://github.com/daledavies/jump"
echo >&2 "";
echo >&2 "-------------------------------------------------------------"

if [ -z "${DEVELOPMENT-}" ]; then
echo >&2 "";
echo >&2 "- Repopulating web root with application files."

if [ "$(ls -A /var/www/html)" ]; then
rm /var/www/html/* -r
fi
cp /usr/src/jumpapp/* /var/www/html -r
cp /usr/src/jumpapp/. /var/www/html -r

echo >&2 "- You are using Jump $(</var/www/html/.jump-version)";
echo >&2 "";
echo >&2 "-------------------------------------------------------------"
echo >&2 "";

echo >&2 "- Check if backgrounds, search or sites volumes have been mounted."
echo >&2 "- Checking if backgrounds, search or sites volumes have been mounted."
if [ -e "/backgrounds" ]; then
echo >&2 " - Backgrounds directory is mapped... symlinking."
rm /var/www/html/assets/backgrounds -r
Expand Down Expand Up @@ -41,8 +59,11 @@ if [ -z "${DEVELOPMENT-}" ]; then
fi
fi

echo >&2 "";
echo >&2 "- All done! Starting nginx/php services now."
echo >&2 "";
echo >&2 "-------------------------------------------------------------"
echo >&2 "";
fi

php-fpm8
Expand Down

0 comments on commit de09a06

Please sign in to comment.