- Grants and revokes X Server access for GUI applications
- Starts a Docker container
- Attaches to a running Docker container
- Executes a GUI application inside the container
- Docker
- Docker Compose
- Python 3.x
dogma/
├── Dockerfile: Defines the Docker container including the necessary dependencies
├── docker-compose.yml: Docker Compose configuration file
├── dogma.py: Script to manage the Docker container and run the application
- Clone this repository to your local machine:
git clone https://github.com/williamblair333/dogma.git cd dogma
- Run the script:
python dogma.py <container_name> <application_path> python3 dogma.py gpt4all-gpt4all-1 /root/gpt4all/bin/chat
- X Server access is granted temporarily and revoked immediately after running the application
- Ensure you have all prerequisites installed before running the script
A Docker image using a specified distro is attached for convenience to illustrate/test the features.
- Make sure to customize the Dockerfile and docker-compose.yml as per your project requirements.