laradock / workspace

Laradock Base Image.
http://laradock.io/
MIT License
112 stars 87 forks source link

[feature] add mysql-client as dependency #22

Closed ayaka209 closed 5 years ago

ayaka209 commented 6 years ago

now we don't have mysql command...

UnderDogg commented 6 years ago

maybe duplicate: https://github.com/laradock/laradock/issues/1423 Solution (thanks to https://github.com/laradock/laradock/issues/644):

open up your workspace/Dockerfile and add these lines to it

mysql-client

USER root

RUN apt update && \ apt install -y mysql-client down your containers docker-compose down then rebuild workspace just by docker-compose build workspace and re-up you containers for example docker-compose up redis nginx mysql

ayaka209 commented 6 years ago

I have forked my own copy and made changes but I think it's a very common scenario

Thank you @UnderDogg

azaricstefan commented 5 years ago

@ayaka209 I agree with you. This should be included in

  1. workspace
  2. php-fpm (Here only if someone is using it with laravel backpack backup package)
bestlong commented 5 years ago

now can customized install on laradock/laradock .env WORKSPACE_INSTALL_MYSQL_CLIENT.