This is a containerized version of the F4 application. At this point, it has only been tested for running F4 on MacOS.
It works by running a Linux container with F4 installed and performing an X11 forward so that the graphical application can be displayed in the user's window system, regardless of the operating system they are running.
- XQuartz:
- Install XQuartz:
brew install --cask xquartz
- Add localhost to xhost:
xhost +localhost
- Restart your machine (YOU MUST DO THIS!)
- Open XQuartz and go to Settings/Security. Disable "Authenticate connections" and enable "Allow connections from network clients". Note that this is a security vulnerability.
- Quit XQuartz and re-open
- Install XQuartz:
- Docker:
- Clone this repo
- Create a
.env
file in the resulting directory with the following variables set:
WORKSPACE
: A directory on the local filesystem that should be used at the F4 workspace. This is injected into the docker image filesystemINTERPRETERS
: A directory on the local filesystem that contains alternate Fantom interpreters that F4 can use (by selecting in Preferences). This is especially useful for SkySpark development.
- Build and start the image:
docker-compose up
Improvements:
- Fix X11 security vulnerability by sharing user/XAuthority keys
- Add support for installing/persisting Eclipse plugins