release/0.4.0 #60
1 changed files with 12 additions and 10 deletions
|
|
@ -14,7 +14,9 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mysql:8.0
|
# Fully qualified, matching docker/dev/docker-compose.yml: the runner is
|
||||||
|
# podman-backed and a bare name depends on unqualified-search-registries.
|
||||||
|
image: docker.io/library/mysql:8.0
|
||||||
env:
|
env:
|
||||||
MYSQL_DATABASE: testing
|
MYSQL_DATABASE: testing
|
||||||
MYSQL_USER: incr_user
|
MYSQL_USER: incr_user
|
||||||
|
|
@ -37,17 +39,17 @@ jobs:
|
||||||
- name: Prepare environment
|
- name: Prepare environment
|
||||||
run: cp .env.testing .env
|
run: cp .env.testing .env
|
||||||
|
|
||||||
# Temporary: MySQL is unreachable at db:3306 under the prebuilt image,
|
# Temporary: db resolves but refuses :3306. Capture what the service
|
||||||
# though the identical service block worked on catthehacker/ubuntu.
|
# container is actually doing before assuming a cause.
|
||||||
- name: Diagnose service networking
|
- name: Probe the db service
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
echo "--- /etc/hosts ---"; cat /etc/hosts || true
|
echo "--- ports responding on db ---"
|
||||||
echo "--- /etc/resolv.conf ---"; cat /etc/resolv.conf || true
|
for p in 3306 33060 80; do
|
||||||
echo "--- php resolves db ---"; php -r 'var_dump(gethostbyname("db"));' || true
|
php -r "\$f=@fsockopen('db',$p,\$n,\$e,2); echo '$p: '.(\$f?'open':\$e).PHP_EOL;"
|
||||||
echo "--- php connect ---"; php -r '$e=null;$f=@fsockopen("db",3306,$n,$e,3);echo $f?"open\n":"fail: $e\n";' || true
|
done
|
||||||
echo "--- hostname/ip ---"; hostname -i 2>/dev/null || true
|
echo "--- can we reach ourselves? (sanity) ---"
|
||||||
echo "--- env ---"; env | sort | grep -iE "host|service|port" || true
|
php -r '$f=@fsockopen("127.0.0.1",1,$n,$e,1); echo "localhost:1 -> $e".PHP_EOL;'
|
||||||
|
|
||||||
- name: Wait for MySQL
|
- name: Wait for MySQL
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue