Closed nyck33 closed 1 month ago
@nyck33,
We have a separate repo, and requirements can vary from user to user. The setup.sh file is provided specifically for Linux users. If you believe something can be fixed for Windows users as well, feel free to submit a pull request to the Docker repository.
I will check one more time for the latest version to see if that script is working. However, as this is open source, I cannot guarantee the time of the fix.
I am transfering this issue to bagisto docker repo.
I just tested and its working fine without any issues. Seems like issue with the connection in WSL2.
I don't think so:
+] Running 8/8
✔ Network bagisto-docker_default Created 0.0s
✔ Container bagisto-php-apache Started 2.0s
✔ Container bagisto-elasticsearch Started 2.0s
✔ Container bagisto-mysql Started 0.7s
✔ Container bagisto-mailhog Started 0.6s
✔ Container bagisto-redis Started 2.0s
✔ Container bagisto-phpmyadmin Started 0.6s
✔ Container bagisto-kibana Started 2.0s
Please wait... Waiting for MySQL connection...
Creating empty database for bagisto...
^C
(base) nyck33@lenovo-15ACH6:~/web/bagisto-docker$ docker exec bagisto-mysql --user root -p root
OCI runtime exec failed: exec failed: unable to start container process: exec: "--user": executable file not found in $PATH: unknown
(base) nyck33@lenovo-15ACH6:~/web/bagisto-docker$ docker exec bagisto-mysql -u root -p root
OCI runtime exec failed: exec failed: unable to start container process: exec: "-u": executable file not found in $PATH: unknown
(base) nyck33@lenovo-15ACH6:~/web/bagisto-docker$ docker exec -it bagisto-mysql mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 193
Server version: 8.0.37 MySQL Community Server - GPL
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE DATABASE bagisto CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ERROR 1007 (HY000): Can't create database 'bagisto'; database exists
mysql> use bagisto;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> CREATE DATABASE bagisto_testing CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ERROR 1007 (HY000): Can't create database 'bagisto_testing'; database exists
mysql> use bagisto_testing
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql>
it gets stuck so I tried to manually create those databases but they are there...as empty databases. I'm on Ubuntu 23.10 now not WSL2 so your testing procedures are not thorough enough. Also what is this? ```base) nyck33@lenovo-15ACH6:~/Downloads$ docker pull webkul/bagisto Using default tag: latest Error response from daemon: manifest for webkul/bagisto:latest not found: manifest unknown: manifest unknown
If database is already present there, then you need to delete the database. Somehow in earlier stage we didnt delete the existing database because of data loss.
Which is the reason script stucked there.
But i think now its not needed, i will add a check there to fix this.
Terms
Bagisto Version(s) affected
check docker repo
Issue Description
Other ecommerce solutions like Saleor? Docker is included in the main repo at root and then it's really just a no brainer to do
docker-compose up
and get going so this looks very bad on Bagisto. I am going to try to convince my company to not use it if this is not fixed within a few days.Preconditions
I'm on WSL2, if that is a problem say so in the Readme.
Steps to reproduce
please do your own homework.
Expected Result
should be typing in one command to be up and running. Do you really need setup.sh or are there other ways to get this done? I tried to pull the image from Docker Hub but got an error too. It looks stale and probably needs to be updated. Docker is so important for dev teams and you are neglecting it which is unfortunate.
Actual Result
It does not work.
Docker is the best way to ensure dev teams use same environment. Please fix it.
Screenshots
No response
Additional context
No response