Skip to content

a template repository for building a Glamorous Toolkit app

Notifications You must be signed in to change notification settings

feenkcom/glamorous-docker-setup

Repository files navigation

glamorous docker setup

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.

Command line only

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.

Build docker image with bash

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 .

Run

docker run glamorousdocker:latest

should print a number to console and then exit.

GUI app

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.

Build docker image with bash

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 .

Run

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

gt xpra

About

a template repository for building a Glamorous Toolkit app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published