This is a template repository for building and packaging a Glamorous Toolkit app in a docker image. It is based on GT.zip which contains a GlamorousToolkit.image without the GtWorld opened.
The main
branch shows how to run a command line app that does not really do much - it just outputs a number. That is not very useful but, for example, the code in run.st
could instead start a Teapot.
DOCKER_BUILDKIT=1 docker build --no-cache --secret id=myid_rsa,src=$HOME/.ssh/id_rsa --secret id=myid_rsa.pub,src=$HOME/.ssh/id_rsa.pub -t glamorousdocker .
docker run glamorousdocker:latest
should print a number to console and then exit.
The gui-app
branch is just an OpenGL Docker image with a Xpra server which supports viewing and controlling X11 from a browser.
This allows running Glamorous Toolkit in Linux systems with older versions of GLIBCXX
. Its only dependency being docker and a browser.
Only tested this setup on OS X and Chrome.
DOCKER_BUILDKIT=1 docker build --no-cache --secret id=myid_rsa,src=$HOME/.ssh/id_rsa --secret id=myid_rsa.pub,src=$HOME/.ssh/id_rsa.pub -t glamorousdocker .
First run the docker image
docker run -it -p 9876:9876 glamorousdocker
Then open the browser on http://localhost:9876. Then, in xterm
cd GlamorousToolkit
./glamoroustoolkit GlamorousToolkit.image st ../run.st --no-quit --interactive