Buenas, estaba revisando como viene la mano de la instalación de Toba 3 en Docker. Para explorar, quise arrancar un proyecto de cero y dejarlo “andando” con los containers, para luego meterme en la dockerización de algun proyecto existente.
Arranqué por el template y su guía de instalación: https://github.com/SIU-Toba/template-proyecto-toba#instalación-y-creación-del-proyecto-con-docker
Obviamente edité el docker-compose.yml colocando el nombre de proyecto. En ese punto, al hacer el up, dejo los logs
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Creating network "toba-docker_default" with the default driver
Creating pg ... done
Creating backendapi ... done
Attaching to pg, backendapi
pg | The files belonging to this database system will be owned by user "postgres".
pg | This user must also own the server process.
pg |
pg | The database cluster will be initialized with locale "en_US.utf8".
pg | The default database encoding has accordingly been set to "UTF8".
pg | The default text search configuration will be set to "english".
pg |
pg | Data page checksums are disabled.
pg |
pg | fixing permissions on existing directory /var/lib/postgresql/data ... ok
backendapi | Starting backendapi...
pg | creating subdirectories ... ok
pg | selecting default max_connections ... 100
pg | selecting default shared_buffers ... 128MB
pg | selecting default timezone ... Etc/UTC
pg | selecting dynamic shared memory implementation ... posix
backendapi | Notice: Se utiliza el id_desarrollador default (0)
backendapi | Notice: Se utiliza el nombre de instalacion por default (Toba Editor)
pg | creating configuration files ... ok
pg | running bootstrap script ... ok
backendapi | /entrypoint.d/toba.sh: line 89: /var/local/backendapi/vendor/siu-toba/framework/bin/connection_test: No such file or directory
backendapi | Loading composer repositories with package information
pg | performing post-bootstrap initialization ... ok
pg | syncing data to disk ... ok
pg |
pg | Success. You can now start the database server using:
pg |
pg | pg_ctl -D /var/lib/postgresql/data -l logfile start
pg |
pg |
pg | WARNING: enabling "trust" authentication for local connections
pg | You can change this by editing pg_hba.conf or using the option -A, or
pg | --auth-local and --auth-host, the next time you run initdb.
pg | waiting for server to start....2022-03-10 14:39:41.112 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
pg | 2022-03-10 14:39:41.123 UTC [49] LOG: database system was shut down at 2022-03-10 14:39:40 UTC
pg | 2022-03-10 14:39:41.126 UTC [48] LOG: database system is ready to accept connections
pg | done
pg | server started
pg |
pg | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
pg |
pg | 2022-03-10 14:39:41.235 UTC [48] LOG: received fast shutdown request
pg | waiting for server to shut down....2022-03-10 14:39:41.254 UTC [48] LOG: aborting any active transactions
pg | 2022-03-10 14:39:41.254 UTC [48] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1
pg | 2022-03-10 14:39:41.254 UTC [50] LOG: shutting down
pg | 2022-03-10 14:39:41.265 UTC [48] LOG: database system is shut down
pg | done
pg | server stopped
pg |
pg | PostgreSQL init process complete; ready for start up.
pg |
pg | 2022-03-10 14:39:41.345 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
pg | 2022-03-10 14:39:41.345 UTC [1] LOG: listening on IPv6 address "::", port 5432
pg | 2022-03-10 14:39:41.347 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
pg | 2022-03-10 14:39:41.355 UTC [67] LOG: database system was shut down at 2022-03-10 14:39:41 UTC
pg | 2022-03-10 14:39:41.358 UTC [1] LOG: database system is ready to accept connections
backendapi | Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com
/deprecating-composer-1-support/
backendapi | Info from https://repo.packagist.org: #StandWithUkraine
backendapi | Updating dependencies (including require-dev)
backendapi | Your requirements could not be resolved to an installable set of packages.
backendapi |
backendapi | Problem 1
backendapi | - siu-toba/framework v3.3.9 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.8 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.7 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.6 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.5 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.4 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.3 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.23 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.22 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.21 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.20 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.2 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.19 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.18 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.17 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.16 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.15 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.14 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.13 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.12 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.11 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.10 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.1 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - siu-toba/framework v3.3.0 requires ioncube/php-openssl-cryptor dev-master -> no matching package found.
backendapi | - Installation request for siu-toba/framework ~3.3 -> satisfiable by siu-toba/framework[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.
3.18, v3.3.19, v3.3.2, v3.3.20, v3.3.21, v3.3.22, v3.3.23, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9].
backendapi |
backendapi | Potential causes:
backendapi | - A typo in the package name
backendapi | - The package is not available in a stable-enough version according to your minimum-stability setting
backendapi | see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
backendapi | - It's a private package and you forgot to add a custom repository to find it
backendapi |
backendapi | Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
backendapi | /entrypoint.d/toba.sh: line 97: /var/local/backendapi/vendor/siu-toba/framework/bin/toba: No such file or directory
backendapi | /entrypoint.d/toba.sh: line 112: /var/local/backendapi/vendor/siu-toba/framework/bin/toba: No such file or directory
backendapi | grep: /var/local/docker-data/backendapi-instalacion/i__desarrollo/instancia.ini: No such file or directory
backendapi | /entrypoint.d/toba.sh: line 142: /var/local/backendapi/vendor/siu-toba/framework/bin/toba: No such file or directory
backendapi | chown: cannot access '/var/local/docker-data/backendapi-instalacion/i__desarrollo': No such file or directory
backendapi | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.23.0.3. Set the 'ServerName' directive globally to suppress this message
backendapi | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.23.0.3. Set the 'ServerName' directive globally to suppress this message
backendapi | [Thu Mar 10 11:40:51.590071 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.3.13 configured -- resuming normal operations
backendapi | [Thu Mar 10 11:40:51.590086 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
^CGracefully stopping... (press Ctrl+C again to force)
Stopping backendapi ... done
Stopping pg ... done
Revisando en el foro, encontré que el error de composer es por la versión de este. En el caso de mi deploy, no tengo ese composer local, sino que es el que esta en la imagen respectiva. El otro error, el del test de conexión, es porque no definí la variable DOCKER_WAIT_FOR, no?
Para el caso de composer, entiendo que deberia rebuildear una imagen de Docker Web 1, y luego a partir de esa imagen armar otra build de Docker Toba 2, y asi…
Me pareció bastante tedio, por lo que recurro acá para saber si es que se discontinuo este deploy, se cambio el enfoque y las imagenes actualizadas estan en otro lado, o esta pasando otra cosa que no entiendo.
Cualquier orientación sobre este deploy, se agradece.