Skip to content

Commit 739602c

Browse files
committed
Added "cli" target for docker entrypoint cmd
1 parent 9218476 commit 739602c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docker-env.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
1+
# Settings: TYPO3 CMS
12
DOCUMENT_ROOT=code/
23
DOCUMENT_INDEX=index.php
4+
CLI_SCRIPT=php typo3/cli_dispatch.phpsh
35

6+
# Settings: NEOS or FLOW
7+
#DOCUMENT_ROOT=code/Web/
8+
#DOCUMENT_INDEX=index.php
9+
#CLI_SCRIPT=php flow
10+
11+
# Settings: SYMFONY FRAMEWORK
12+
#DOCUMENT_ROOT=code/web/
13+
#DOCUMENT_INDEX=app_dev.php
14+
#CLI_SCRIPT=php app/console
15+
16+
# Contexts environment
417
TYPO3_CONTEXT=Development/Docker
518
FLOW_CONTEXT=Development/Docker
619
FLOW_REWRITEURLS=1
20+
SYMFONY_ENV=dev
21+
SYMFONY_DEBUG=0
722

23+
# Service settings
824
MAIL_GATEWAY=192.168.56.2
925
DNS_DOMAIN=vm vm.dev
1026

27+
# MySQL settings
1128
MYSQL_ROOT_PASSWORD=dev
1229
MYSQL_USER=dev
1330
MYSQL_PASSWORD=dev
1431
MYSQL_DATABASE=typo3
1532

33+
# PHP Settings
1634
PHP_TIMEZONE=UTC
1735
PHP_UID=1000
1836
PHP_GID=1000

docker/main/entrypoint.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ case "$1" in
4444
fi
4545
;;
4646

47+
## Defined cli script
48+
cli)
49+
if [ -n "${CLI_SCRIPT}" ]; then
50+
shift
51+
exec ${CLI_SCRIPT} "$@"
52+
else
53+
echo "[ERROR] No CLI_SCRIPT in docker-env.yml defined"
54+
exit 1
55+
fi
56+
;;
57+
4758
## All other commands
4859
*)
4960
## Set home dir (workaround)

0 commit comments

Comments
 (0)