Skip to content

Commit de09a06

Browse files
committed
Add splash and version to entrypoint log output
1 parent 0628914 commit de09a06

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

docker/entrypoint.sh

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

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

5+
echo >&2 "-------------------------------------------------------------"
6+
echo >&2 "";
7+
echo >&2 " ██ ██ ██ ███ ███ ██████"
8+
echo >&2 " ██ ██ ██ ████ ████ ██ ██"
9+
echo >&2 " ██ ██ ██ ██ ████ ██ ██████"
10+
echo >&2 "██ ██ ██ ██ ██ ██ ██ ██"
11+
echo >&2 " █████ ██████ ██ ██ ██"
12+
echo >&2 "";
13+
echo >&2 "https://github.com/daledavies/jump"
14+
echo >&2 "";
15+
echo >&2 "-------------------------------------------------------------"
16+
17+
if [ -z "${DEVELOPMENT-}" ]; then
18+
echo >&2 "";
719
echo >&2 "- Repopulating web root with application files."
20+
821
if [ "$(ls -A /var/www/html)" ]; then
922
rm /var/www/html/* -r
1023
fi
11-
cp /usr/src/jumpapp/* /var/www/html -r
24+
cp /usr/src/jumpapp/. /var/www/html -r
25+
26+
echo >&2 "- You are using Jump $(</var/www/html/.jump-version)";
27+
echo >&2 "";
28+
echo >&2 "-------------------------------------------------------------"
29+
echo >&2 "";
1230

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

62+
echo >&2 "";
4463
echo >&2 "- All done! Starting nginx/php services now."
64+
echo >&2 "";
4565
echo >&2 "-------------------------------------------------------------"
66+
echo >&2 "";
4667
fi
4768

4869
php-fpm8

0 commit comments

Comments
 (0)