mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Docker images are buildables
This commit is contained in:
4
docker/phraseanet-debug/usr/bin/docker-get-host-ip
Normal file
4
docker/phraseanet-debug/usr/bin/docker-get-host-ip
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/sbin/ip route|awk '/default/ { print $3 }'
|
||||
# TODO support MacOS & Windows host IP
|
5
docker/phraseanet-debug/usr/bin/docker-xdebug-disable
Normal file
5
docker/phraseanet-debug/usr/bin/docker-xdebug-disable
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
unset HOST_IP
|
||||
unset XDEBUG_CONFIG
|
||||
unset XDEBUG_REMOTE_HOST
|
9
docker/phraseanet-debug/usr/bin/docker-xdebug-enable
Normal file
9
docker/phraseanet-debug/usr/bin/docker-xdebug-enable
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
HOST_IP=$(docker-get-host-ip);
|
||||
|
||||
export HOST_IP
|
||||
export XDEBUG_CONFIG="remote_enable=1 remote_host=${HOST_IP} idekey=PHPSTORM";
|
||||
export XDEBUG_REMOTE_HOST="${HOST_IP}";
|
Reference in New Issue
Block a user