YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.74k stars 749 forks source link

[Docker] Issue with mysql during building #17354

Open KarolJagodzinski opened 11 months ago

KarolJagodzinski commented 11 months ago

🐞 bug report

⁉️ Describe the bug

Cannot build a docker container locally

πŸ”₯ How to trigger the error

Steps to reproduce the behavior:

  1. Clone the github repository
  2. Build docker container docker compose build --no-cache

πŸ‘Ž Actual Behavior

[yetiforce-crm 21/37] COPY ./tests/setup/docker_entrypoint.sh /                                                                                                                 0.0s
 => [yetiforce-crm 22/37] RUN rm /var/www/html/.user.ini                                                                                                                            0.1s
 => [yetiforce-crm 23/37] RUN rm /var/www/html/public_html/.user.ini                                                                                                                0.2s
 => ERROR [yetiforce-crm 24/37] RUN SERVICE mysql start;  mysql -uroot mysql;  mysqladmin password "1r2VdePVnNxluabdGuqh";  echo "UPDATE mysql.user SET Password=PASSWORD('1r2VdeP  0.1s
------
 > [yetiforce-crm 24/37] RUN    SERVICE mysql start;    mysql -uroot mysql;     mysqladmin password "1r2VdePVnNxluabdGuqh";     echo "UPDATE mysql.user SET Password=PASSWORD('1r2VdePVnNxluabdGuqh') WHERE User='root';" | mysql --user=root;  echo "DELETE FROM mysql.user WHERE User='';" | mysql --user=root;   echo "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');" | mysql --user=root;     echo "DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%';" | mysql --user=root;   echo "CREATE DATABASE yetiforce;" | mysql --user=root;  echo "CREATE USER 'yetiforce'@'localhost' IDENTIFIED BY 'Q4WK2yRUpliyjMRivDJE';" | mysql --user=root;   echo "GRANT ALL PRIVILEGES ON yetiforce.* TO 'yetiforce'@'localhost';" | mysql --user=root; echo "FLUSH PRIVILEGES;" | mysql --user=root:
0.105 mysql: unrecognized service

πŸ‘ Expected Behavior

Running container

πŸ‘¨β€πŸ’»οΈ Command to launch docker

docker compose build --no-cache