forked from Chill-project/chill-skeleton-basic
initial commit
This commit is contained in:
15
docker-php.sh
Executable file
15
docker-php.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# exécute toujours dans le répertoire `php`
|
||||
cd $(dirname $0)
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
cmd=/bin/bash
|
||||
else
|
||||
cmd="${@}"
|
||||
fi
|
||||
|
||||
docker-compose exec \
|
||||
--user $(id -u):$(id -g) \
|
||||
php $cmd
|
Reference in New Issue
Block a user