eusonlito / GPS-Tracker

GPS Tracker platform for Sinotrack, Coban, Teltonika, Concox, Jimilab, OsmAnd and Queclink devices built with Laravel 11 + PHP 8.2 and MySQL 8. Plataforma GPS Tracker para dispositivos Sinotrack Sinotrack, Coban, Teltonika, Concox, Jimilab, OsmAnd y Queclink creada con Laravel 11 + PHP 8.2 y MySQL 8.
https://tracker-demo.lito.com.es/
MIT License
169 stars 73 forks source link

Docker Build fail #62

Closed SOG-web closed 4 months ago

SOG-web commented 4 months ago

failed to solve: process "/bin/sh -c ./composer install --no-dev --optimize-autoloader --classmap-authoritative" did not complete successfully: exit code: 1

SOG-web commented 4 months ago

Generating optimized autoload files 4.119 > Illuminate\Foundation\ComposerScripts::postAutoloadDump 4.134 > @php artisan package:discover --ansi 4.276 4.281 In Connection.php line 813: 4.281 4.281 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for gpstracker 4.281 -mysql failed: Name or service not known (Connection: mysql, SQL: select ta 4.281 ble_name asname, (data_length + index_length) assize, table_comment a 4.281 scomment, engine asengine, table_collation ascollation` from inform
4.281 ation_schema.tables where table_schema = 'gpstracker' and table_type in ('B
4.281 ASE TABLE', 'SYSTEM VERSIONED') order by table_name)
4.281
4.281 4.282 In Connector.php line 65: 4.282
4.282 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for gpstracker
4.282 -mysql failed: Name or service not known
4.282
4.282 4.285 In Connector.php line 65: 4.285
4.285 PDO::__construct(): php_network_getaddresses: getaddrinfo for gpstracker-my
4.285 sql failed: Name or service not known
4.285
4.285 4.291 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

`

eusonlito commented 4 months ago

I'm reviewing some issues with the netwotk configuration in the latest docker versions.

SOG-web commented 4 months ago

ok thanks so much, but I already got it working

I splitted the compose file into two due to network issues

eusonlito commented 4 months ago

Can you paste here your solution? Thanks!

SOG-web commented 4 months ago

Am currently in transit. I will past the solution once I settle down

eusonlito commented 4 months ago

I think is solved with my changes.

Regards, Lito.