Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running the example #13

Open
ioan-ghisoi-cko opened this issue Nov 11, 2019 · 2 comments
Open

Issue running the example #13

ioan-ghisoi-cko opened this issue Nov 11, 2019 · 2 comments

Comments

@ioan-ghisoi-cko
Copy link

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?

@ju5t
Copy link
Contributor

ju5t commented Nov 11, 2019

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

@ju5t
Copy link
Contributor

ju5t commented Nov 12, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants