docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

Issue running the example

Open ioan-ghisoi-cko opened this issue 6 years ago • 2 comments
trafficstars

I wanted to run the example and check out the environment. When I run docker-compose up -d i get the containers to keep restarting: image

Am I missing something?

ioan-ghisoi-cko avatar Nov 11 '19 13:11 ioan-ghisoi-cko

It doesn't install the source for you. Did you run composer install in the source directory?

ju5t avatar Nov 11 '19 15:11 ju5t

Sorry, apparently we have never tested the switch to PHP 7.2 properly. I have fixed the base image.

Something happened between 2.2.7 and 2.2.10 though. The automated installation and/or upgrade is currently not working in our example. Magento usually struggles to keep things backwards compatible, as is probably the case here, but I'm not ruling out that our setup is wrong either.

The below fails:

  CMD_CONFIG="${CMD_MAGENTO} setup:config:set --db-host="${MYSQL_HOSTNAME}" \
              --db-name="${MYSQL_DATABASE}" --db-user="${MYSQL_USERNAME}" \
              --db-password="${MYSQL_PASSWORD}" --key="${CRYPTO_KEY}""

with the error message:

magento-frontend | We saved default values for these options: db-user, db-engine, db-prefix, db-model, db-init-statements, session-save, lock-provider.
magento-frontend |
magento-frontend |
magento-frontend |   [DomainException]
magento-frontend |   Connection "default" is not defined

This is partly related to our configuration (app/etc/env.conf and app/etc/config.php) but in the last few hours I haven't been able to come up with a solution yet. There isn't much documented about this.

ju5t avatar Nov 12 '19 09:11 ju5t