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
- Host: GitHub
- URL: https://github.com/feenkcom/glamorous-docker-setup
- Owner: feenkcom
- Created: 2020-09-03T07:38:56.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T16:06:53.000Z (almost 3 years ago)
- Last Synced: 2025-04-11T05:07:26.340Z (about 1 year ago)
- Language: Shell
- Size: 3.98 MB
- Stars: 2
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```
