Browse Source

* fix starting xdebug for other php-versions

+ dump db bash helpers
master
parent
commit
c57f3421e4
  1. 4
      bash/dump.sh
  2. 2
      dockerfiles/php7.1-fpm/xdebug.sh
  3. 2
      dockerfiles/php7.4-fpm/xdebug.sh

4
bash/dump.sh

@ -0,0 +1,4 @@
#!/bin/bash
cd $HOME/structure
dbId=$(docker ps -q --filter name=db)
docker exec $dbId mysqldump -u root -p123456 $1 | pv > $2

2
dockerfiles/php7.1-fpm/xdebug.sh

@ -4,7 +4,7 @@
# Grab full name of php-fpm container
PHP_FPM_CONTAINER=$(docker ps | grep php-fpm | awk '{print $1}')
PHP_FPM_CONTAINER=$(docker ps | grep php7.1-fpm | awk '{print $1}')
# Grab OS type

2
dockerfiles/php7.4-fpm/xdebug.sh

@ -4,7 +4,7 @@
# Grab full name of php-fpm container
PHP_FPM_CONTAINER=$(docker ps | grep php-fpm | awk '{print $1}')
PHP_FPM_CONTAINER=$(docker ps | grep php7.4-fpm | awk '{print $1}')
# Grab OS type

Loading…
Cancel
Save