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

Add troubleshooting about mysql container #129

Merged
merged 4 commits into from Sep 12, 2018

Conversation

Projects
None yet
3 participants
@matks
Contributor

matks commented Jul 27, 2018

In this PR:

  • I add a Troubleshooting README section which explains how to solve 3 issues I got when I tried to run the prestashop docker image along a mysql container. The issues happen with MySQL 8.
  • I modify the README example of how to run the image using a docker network instead of the link feature as this is a legacy feature according to docker doc
@skygab

This comment has been minimized.

Show comment
Hide comment
@skygab

skygab Aug 4, 2018

Excellent... thanks 🍻 to your changes I was able to make the docker containers work.
There is a minor modification Id suggest for users working from Docker on Mac (My current environment):

NOTE: I had to apply all your suggested troubleshooting tips.. including the charset one

Change request follows :)

Cheers!
Gabriel

skygab commented Aug 4, 2018

Excellent... thanks 🍻 to your changes I was able to make the docker containers work.
There is a minor modification Id suggest for users working from Docker on Mac (My current environment):

NOTE: I had to apply all your suggested troubleshooting tips.. including the charset one

Change request follows :)

Cheers!
Gabriel

@skygab

skygab suggested changes Aug 4, 2018 edited

Troubleshooting

When using Docker for Mac , Prestashop can't be reached from the host browser (Gets redirected to "dockeripaddress:8080")

Problem: Docker for Mac has an issue with bridging networking and for that, It can't reach the container on its internal IP address. After installation, the browser on the host machine will be redirected from http://localhost:8080 to http://<internal_prestashop_container_ip>:8080 and it will fail.

FIX: You need to set the PS_DOMAIN and PS_SHOP_URL variables to localhost:8080 for it to work correctly when browsing from the host computer. The command looks something like this:
(PS_INSTALL_AUTO=1 is optional)

docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -e PS_INSTALL_AUTO=1 -e PS_DOMAIN=localhost:8080 -e PS_SHOP_URL:localhost:8080 -p 8080:80 -d prestashop/prestashop
Show outdated Hide outdated README.md
@matks

This comment has been minimized.

Show comment
Hide comment
@matks

matks Aug 6, 2018

Contributor

Thanks @skygab I applied your suggestions :)

@Quetzacoalt91 Can you consider this PR to be merged ?

Note: looks like MySQL 8 brings a lot of issues. Should we push for MySQL 5.7 to be used ?

Contributor

matks commented Aug 6, 2018

Thanks @skygab I applied your suggestions :)

@Quetzacoalt91 Can you consider this PR to be merged ?

Note: looks like MySQL 8 brings a lot of issues. Should we push for MySQL 5.7 to be used ?

Show outdated Hide outdated README.md
Show outdated Hide outdated README.md
Show outdated Hide outdated README.md
@matks

This comment has been minimized.

Show comment
Hide comment
@matks

matks Sep 12, 2018

Contributor

@Quetzacoalt91 your requested changes have been applied in 3a81328

PR rebased

Contributor

matks commented Sep 12, 2018

@Quetzacoalt91 your requested changes have been applied in 3a81328

PR rebased

@Quetzacoalt91 Quetzacoalt91 merged commit 0876a5c into PrestaShop:master Sep 12, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Quetzacoalt91

This comment has been minimized.

Show comment
Hide comment
@Quetzacoalt91

Quetzacoalt91 Sep 12, 2018

Member

Thank you @matks

Member

Quetzacoalt91 commented Sep 12, 2018

Thank you @matks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment