An open API service indexing awesome lists of open source software.

https://github.com/feenkcom/glamorous-docker-setup

a template repository for building a Glamorous Toolkit app
https://github.com/feenkcom/glamorous-docker-setup

Last synced: about 1 year ago
JSON representation

a template repository for building a Glamorous Toolkit app

Awesome Lists containing this project

README

          

# 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](https://github.com/zeroflag/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](https://xpra.org/) 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](http://localhost:9876).
Then, in xterm
```
cd GlamorousToolkit
./glamoroustoolkit GlamorousToolkit.image st ../run.st --no-quit --interactive
```

![gt xpra](https://github.com/feenkcom/glamorous-docker-setup/raw/main/screenshots/gt-xpra.png "Glamorous Toolkit Hello World app running in a container with the UI served by Xpra")