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

A Gambas playground reconstruction (WIP)


Hi all.

I'm trying to re-create the old gambas Playground.

Progress so far is...
2 working cgi scripts on my server.
Version 1 is a gb.web.gui interface all contained in the cgi
http://138.68.116.47/cgi-bin/Scripter.gambas
Type gambas code in the box then hit run and result text is shown in the
output display.
Code is run as a gbs script but also Eval can be used.

when you run the command it duplicates the ubuntu docker container and lets
you run the text as a gambas script, then the container self deletes.

Version 2 cgi has no interface so i made a test html page here:
http://138.68.116.47/gbtest.html
The page is an interface using javascript to use the cgi
http://138.68.116.47/cgi-bin/GambasRun.gambas.
The only function of the cgi here is run the code and output the result.
The gbtest.html <http://138.68.116.47/gbtest.html> page layout and
functions are client-side html/javascript and can be seen by viewing the
source.

args are passed via the URL query (i have also coded the POST method but
not tested it yet)

Any thoughts? Suggestions?
Any advice on server security risks with docker?
(i'm thinking i should remove all gambas net components so it is not
possible to breakout of the docker?)

Respects
BruceS