Skip to content

Commit 057fa28

Browse files
authored
Merge pull request #37 from aakb/feature/enter-shell-command
Add shell command
2 parents 24e3d9e + b205c00 commit 057fa28

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
@@ -489,6 +492,10 @@ EOF
489492
docker_compose down --volumes --remove-orphans
490493
;;
491494

495+
shell)
496+
docker_compose exec "$@" /usr/bin/env sh
497+
;;
498+
492499
--help)
493500
usage
494501
exit

0 commit comments

Comments
 (0)