tq-frontend
is a frontend application designed to work across different platforms including Linux, macOS, and Windows. The project leverages Docker to ensure consistent environments and easy deployment. This README provides instructions on building and running the Docker images for both desktop and web versions of the application.
docker build -f qtdeskDockerfile -t tq-frontend-desktop .
xhost +local:docker
docker run -it --rm \
--env DISPLAY=${DISPLAY} \
--volume /tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/dri:/dev/dri \
tq-frontend-desktop
- Install XQuartz: Download and install XQuartz from XQuartz.org.
- Open XQuartz: Go to Preferences > Security and check the box for "Allow connections from network clients".
- Restart XQuartz.
- Run the following command in the terminal:
xhost +
docker run -it --rm \
--env DISPLAY=host.docker.internal:0 \
tq-frontend-desktop
- Install VcXsrv: Download and install VcXsrv from SourceForge.
- Open VcXsrv: Go with the default settings.
- Run the following command in the terminal:
set DISPLAY=host.docker.internal:0
docker run -it --rm \
--env DISPLAY=host.docker.internal:0 \
tq-frontend-desktop
docker build -f qtwebDockerfile -t tq-frontend-web .
docker run --rm -p 3000:3000 -it tq-frontend-web