[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feedback - Docker container creation for Gambas Web Application


Hi Benoit,

Here is a small project to create a Docker Image from a Docker project.

Let me know if it’s enough for you to implement it into the IDE


Attachment: gbDockerBuild-0.0.1.tar.gz
Description: GNU Zip compressed data



Olivier



Le 26 août 2025 à 14:28, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> a écrit :

Le 13/08/2025 à 20:55, Linus a écrit :
This is mainly due to the fact Benoit recently has modified the behavior of the ‘gb.web.gui’ component + Mini Web server of Gambas, that permit now to use any conventional Web Server (apache, Nginx, Lighttpd, thttpd, etc…) in front of a Gambas Web Application (based on the ‘gb.web.gui’ component).

Sorry Olivier, I didn't read you carefully enough, but this is wrong.

An executable using 'gb.web.gui' is a CGI script, and so was handled by any http server that can manage CGI scripts since the beginning.

What I changed in the development version is the 'gb.httpd' embedded http server.

Before, this component was a restricted http server that aims at being used only from the IDE for debugging the CGI script.

Now that the IDE can debug any running Gambas program on the fly, this trick is not needed anymore. And so now the 'gb.http' is a true http server.

What does it mean? If in your 'gb.web.gui' project, you check the 'gb.httpd' component, then your program is not just a CGI script anymore, but becomes an full http server running itself as a CGI script.

So you can run it on your system without adding a conventional http server - unless you need a feature not implemented by 'gb.httpd' like TLS/SSL, i.e. 'https'.

Moreover, you don't have to copy the '.public' folder outside of your project, as it should be handled automatically by 'gb.web.gui'. Otherwise it's a bug.

Is it more clear now?

--
Benoît Minisini.




Follow-Ups:
Re: Feedback - Docker container creation for Gambas Web ApplicationLinus <olivier.cruilles@xxxxxxxx>
References:
Feedback - Docker container creation for Gambas Web ApplicationLinus <olivier.cruilles@xxxxxxxx>
Re: Feedback - Docker container creation for Gambas Web ApplicationBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>