Skip to content

Commit 3322b64

Browse files
committed
feat: show environment credentials in banner
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent fa5132d commit 3322b64

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.docker/scripts/report-environment-ready

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ emit_banner() {
3535
printf '\n'
3636
printf '┌─ 💙 Environment ready ─────────────────────\n'
3737
printf '│\n'
38-
[ -z "${ENV_HTTP_PORT:-}" ] || printf '│ %-15s %s\n' 'Nextcloud HTTP' "$(url "$ENV_HTTP_PORT" http://localhost)"
39-
[ -z "${ENV_HTTPS_PORT:-}" ] || printf '│ %-15s %s\n' 'Nextcloud HTTPS' "$(url "$ENV_HTTPS_PORT" https://localhost)"
40-
[ -z "${ENV_MAILPIT_PORT:-}" ] || printf '│ %-15s %s\n' 'Mailpit' "http://localhost:$ENV_MAILPIT_PORT"
41-
[ -z "${ENV_EUROOFFICE_PORT:-}" ] || printf '│ %-15s %s\n' 'EuroOffice' "http://localhost:$ENV_EUROOFFICE_PORT"
42-
[ -z "${ENV_PLAYWRIGHT_PORT:-}" ] || printf '│ %-15s %s\n' 'Playwright' "http://localhost:$ENV_PLAYWRIGHT_PORT"
43-
[ -z "${ENV_SIGNAL_PORT:-}" ] || printf '│ %-15s %s\n' 'Signal' "http://localhost:$ENV_SIGNAL_PORT"
38+
[ -z "${ENV_HTTP_PORT:-}" ] || printf '│ %-16s %s\n' 'Nextcloud HTTP' "$(url "$ENV_HTTP_PORT" http://localhost)"
39+
[ -z "${ENV_HTTPS_PORT:-}" ] || printf '│ %-16s %s\n' 'Nextcloud HTTPS' "$(url "$ENV_HTTPS_PORT" https://localhost)"
40+
[ -z "${ENV_MAILPIT_PORT:-}" ] || printf '│ %-16s %s\n' 'Mailpit' "http://localhost:$ENV_MAILPIT_PORT"
41+
[ -z "${ENV_EUROOFFICE_PORT:-}" ] || printf '│ %-16s %s\n' 'EuroOffice' "http://localhost:$ENV_EUROOFFICE_PORT"
42+
[ -z "${ENV_PLAYWRIGHT_PORT:-}" ] || printf '│ %-16s %s\n' 'Playwright' "http://localhost:$ENV_PLAYWRIGHT_PORT"
43+
[ -z "${ENV_SIGNAL_PORT:-}" ] || printf '│ %-16s %s\n' 'Signal' "http://localhost:$ENV_SIGNAL_PORT"
44+
printf '│\n'
45+
[ -z "${ENV_NEXTCLOUD_BRANCH:-}" ] || printf '│ %-16s %s\n' 'Nextcloud branch' "$ENV_NEXTCLOUD_BRANCH"
46+
[ -z "${ENV_ADMIN_USER:-}" ] || printf '│ %-16s %s\n' 'Admin user' "$ENV_ADMIN_USER"
47+
[ -z "${ENV_ADMIN_PASSWORD:-}" ] || printf '│ %-16s %s\n' 'Admin password' "$ENV_ADMIN_PASSWORD"
4448
printf '│\n'
4549
printf '└────────────────────────────────────────────\n'
4650
} > /proc/1/fd/2

0 commit comments

Comments
 (0)