giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
269 stars 77 forks source link

[Feature Request] Can this be Dockerized? #20

Closed ItsNoted closed 2 years ago

ItsNoted commented 2 years ago

Any change this can be made into a docker image? Seems very nice!

pinkworld123 commented 2 years ago

yes please have a feature to make it dockerized.

nirpt commented 2 years ago

@giandonatoinverso @geekedtv @pinkworld123 I will help to make it dockerized. I will soon submit the pull request with docker feature.

giandonatoinverso commented 2 years ago

very good! I am very pleased.

bonelifer commented 2 years ago

@supermario55 any news on this?

nirpt commented 2 years ago

@giandonatoinverso @bonelifer yes I have created but I can not push until this issue is fixed. https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/21

@giandonatoinverso do you have solution for database Stuck on Database creation #21 ?

nirpt commented 2 years ago

@giandonatoinverso I have tried with 7.1, 7.3, 8.0 php version all have same issue when running URL/install/database.php i see below screen, please see attached screenshot. Screenshot 2022-08-24 at 02 38 24

giandonatoinverso commented 2 years ago

Hi I just tried with php 7.4.21 and it doesn't give me problems, if you want I can send you a screen recording privately. In fact, the one written above appears but the database is created correctly so I cannot reproduce your problem. I am using macOS with MAMP webserver. Which operating system and web server are you using?

nirpt commented 2 years ago

@giandonatoinverso That means there must be specific PHP modules you are installing. Can you please list all required PHP modules, which must be installed, I can not find it in documentation.

I would like to know exact dependencies for example you can write some thing like this as installation requirements

PHP >= 7.4 For installation and maintenance, you’ll need to be able to run php from the command line. Required Extensions: OpenSSL, PDO, MBstring, Tokenizer, GD, MySQL, SimpleXML & DOM

MySQL >= 5.7 or MariaDB >= 10.2 For the storage of BookStack content and data. Single Database (All permissions advised since application manages schema)

Composer >= v2.0 For installation and management of our PHP dependencies.

A PHP Compatible Webserver For usage with PHP and for serving static files.

giandonatoinverso commented 2 years ago

Temporarily write your email address so I can send you my phpinfo

giandonatoinverso commented 2 years ago

I sent you the file to the written email address

nirpt commented 2 years ago

@giandonatoinverso Thanks for deleting my email. I have received your email. i will check it. thanks

nirpt commented 2 years ago

@giandonatoinverso Is it possible to have configuration file for setup process, to set all parameters so do not need to manually click and type information.

giandonatoinverso commented 2 years ago

I sent you the file to the written email address

giandonatoinverso commented 2 years ago

Thanks @nirpt for contributing to the project! It will also be available on docker hub soon

giopas commented 2 years ago

Hi giandonatoinverso, any news on the docker? I am also very curious to use it!

nirpt commented 2 years ago

@giopas its already available. https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/tree/master/docker

hakuyouhiro commented 2 years ago

Using the docker version. Unable to install. Stuck at db creation. Tried almost all combination of parameters in the docker compose yml.

Screenshot_20220924-095924_Chrome.jpg

nirpt commented 2 years ago

@hakuyouhiro as I see you are writing wrong username and password for database. You need to type your database server credentials.

Please look in docker compose file it’s there. DATABASE_HOST: "mariadb" DATABASE_PORT: "3306" DATABASE_NAME: "qrcode" DATABASE_USER: "qrcode" DATABASE_PASSWORD: "changeme"

giandonatoinverso commented 2 years ago

Using the docker version. Unable to install. Stuck at db creation. Tried almost all combination of parameters in the docker compose yml.

Screenshot_20220924-095924_Chrome.jpg

You are using the old version of the setup. Now there is no longer a graphical wizard but you just have to replace the right credentials in the docker yaml file or manually enter them in the environment.php file