Skip to content

Commit b205c00

Browse files
committed
Add shell command
1 parent 93cf4f7 commit b205c00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/itkdev-docker-compose

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ Commands:
177177
images:pull
178178
Update/pull all docker images.
179179
180+
shell [service name]
181+
Enter into /usr/bin/env sh inside container. E.g. itkdev-docker-compose shell phpfpm
182+
180183
composer
181184
Run composer command inside phpfpm container
182185
@@ -469,6 +472,10 @@ EOF
469472
docker_compose down --volumes --remove-orphans
470473
;;
471474

475+
shell)
476+
docker_compose exec "$@" /usr/bin/env sh
477+
;;
478+
472479
--help)
473480
usage
474481
exit

0 commit comments

Comments
 (0)