Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

[Docker] Issue with mysql during building #17354

Open
KarolJagodzinski opened this issue Dec 14, 2023 · 0 comments
Open

[Docker] Issue with mysql during building #17354

KarolJagodzinski opened this issue Dec 14, 2023 · 0 comments
Assignees
Labels

Comments

@KarolJagodzinski
Copy link

🐞 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants